add more username to uuid lookup tests
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 20s

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)