From bd0953973206030d79eed615c665ef40cc211490 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 11 Apr 2024 00:26:38 +0100 Subject: [PATCH] add more username to uuid lookup tests --- .../java/cc/fascinated/tests/PlayerControllerTests.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/java/cc/fascinated/tests/PlayerControllerTests.java b/src/test/java/cc/fascinated/tests/PlayerControllerTests.java index 2e1d977..d5e1b40 100644 --- a/src/test/java/cc/fascinated/tests/PlayerControllerTests.java +++ b/src/test/java/cc/fascinated/tests/PlayerControllerTests.java @@ -52,6 +52,14 @@ class PlayerControllerTests { .andExpect(jsonPath("$.uuid").value(testPlayerUuid)); } + @Test + public void ensurePlayerUsernameToUuidLookupFailure() throws Exception { + mockMvc.perform(get("/player/uuid/" + testPlayer) + .accept(MediaType.APPLICATION_JSON) + .contentType(MediaType.APPLICATION_JSON)) + .andExpect(status().isNotFound()); + } + @Test public void ensurePlayerLookupFailure() throws Exception { mockMvc.perform(get("/player/" + testInvalidPlayer)