From b5e8664ad3072ab0548efdb6f1f5175ef0d32b6d Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 13 Apr 2024 17:18:43 +0100 Subject: [PATCH] fix tests --- .../java/cc/fascinated/tests/PlayerControllerTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/cc/fascinated/tests/PlayerControllerTests.java b/src/test/java/cc/fascinated/tests/PlayerControllerTests.java index 030c2ff..2a5d903 100644 --- a/src/test/java/cc/fascinated/tests/PlayerControllerTests.java +++ b/src/test/java/cc/fascinated/tests/PlayerControllerTests.java @@ -30,7 +30,7 @@ class PlayerControllerTests { .accept(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) - .andExpect(jsonPath("$.username").value(testPlayer)); + .andExpect(jsonPath("$.player.username").value(testPlayer)); } @Test @@ -39,7 +39,7 @@ class PlayerControllerTests { .accept(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) - .andExpect(jsonPath("$.username").value(testPlayer)); + .andExpect(jsonPath("$.player.username").value(testPlayer)); } @Test @@ -48,8 +48,8 @@ class PlayerControllerTests { .accept(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) - .andExpect(jsonPath("$.username").value(testPlayer)) - .andExpect(jsonPath("$.uniqueId").value(testPlayerUuid)); + .andExpect(jsonPath("$.player.username").value(testPlayer)) + .andExpect(jsonPath("$.player.uniqueId").value(testPlayerUuid)); } @Test