forked from MinecraftUtilities/Backend
add more username to uuid lookup tests
This commit is contained in:
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user