From b6ebe767ee9f8825537276292f4ed63753f6c637 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Wed, 10 Apr 2024 05:59:33 -0400 Subject: [PATCH] Re-enable ensureBedrockServerLookupSuccess --- .../controller/ServerControllerTests.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/test/java/me/braydon/mc/test/controller/ServerControllerTests.java b/src/test/java/me/braydon/mc/test/controller/ServerControllerTests.java index aeb9c5a..4b5737a 100644 --- a/src/test/java/me/braydon/mc/test/controller/ServerControllerTests.java +++ b/src/test/java/me/braydon/mc/test/controller/ServerControllerTests.java @@ -78,16 +78,16 @@ public final class ServerControllerTests { * * @throws Exception if the test fails */ -// @Test -// void ensureBedrockServerLookupSuccess() throws Exception { -// mockMvc.perform(get("/server/bedrock/gateway.wildnetwork.net") -// .accept(MediaType.APPLICATION_JSON) // Accept JSON -// .contentType(MediaType.APPLICATION_JSON) // Content type is JSON -// ).andExpect(status().isOk()) // Expect 200 (OK) -// .andExpect(jsonPath("$.value.hostname") // Expect the server's resolved hostname -// .value("gateway.wildnetwork.net") -// ).andReturn(); -// } + @Test + void ensureBedrockServerLookupSuccess() throws Exception { + mockMvc.perform(get("/server/bedrock/gateway.wildnetwork.net") + .accept(MediaType.APPLICATION_JSON) // Accept JSON + .contentType(MediaType.APPLICATION_JSON) // Content type is JSON + ).andExpect(status().isOk()) // Expect 200 (OK) + .andExpect(jsonPath("$.value.hostname") // Expect the server's resolved hostname + .value("gateway.wildnetwork.net") + ).andReturn(); + } /** * Run a test to ensure that requesting