add more username to uuid lookup tests

This commit is contained in:
Lee 2024-04-11 00:26:38 +01:00
parent 4a9149e41e
commit bd09539732

@ -52,6 +52,14 @@ class PlayerControllerTests {
.andExpect(jsonPath("$.uuid").value(testPlayerUuid)); .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 @Test
public void ensurePlayerLookupFailure() throws Exception { public void ensurePlayerLookupFailure() throws Exception {
mockMvc.perform(get("/player/" + testInvalidPlayer) mockMvc.perform(get("/player/" + testInvalidPlayer)