From 348f7fa1ebcf4c9c847a60c3935a1c9a5b553a62 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Sat, 13 Apr 2024 13:27:47 -0400 Subject: [PATCH] Fix failed unit tests --- .../me/braydon/mc/test/controller/ServerControllerTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 e249104..690e082 100644 --- a/src/test/java/me/braydon/mc/test/controller/ServerControllerTests.java +++ b/src/test/java/me/braydon/mc/test/controller/ServerControllerTests.java @@ -67,7 +67,7 @@ public final class ServerControllerTests { .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 + .andExpect(jsonPath("$.hostname") // Expect the server's resolved hostname .value("mc.hypixel.net") ).andReturn(); } @@ -84,7 +84,7 @@ public final class ServerControllerTests { .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 + .andExpect(jsonPath("$.hostname") // Expect the server's resolved hostname .value("wildprison.bedrock.minehut.gg") ).andReturn(); }