forked from MinecraftUtilities/Backend
add username to uuid lookup test
This commit is contained in:
parent
a3b9cb5e77
commit
4a9149e41e
@ -42,6 +42,16 @@ class PlayerControllerTests {
|
||||
.andExpect(jsonPath("$.username").value(testPlayer));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ensurePlayerUsernameToUuidLookupSuccess() throws Exception {
|
||||
mockMvc.perform(get("/player/uuid/" + testPlayer)
|
||||
.accept(MediaType.APPLICATION_JSON)
|
||||
.contentType(MediaType.APPLICATION_JSON))
|
||||
.andExpect(status().isOk())
|
||||
.andExpect(jsonPath("$.username").value(testPlayer))
|
||||
.andExpect(jsonPath("$.uuid").value(testPlayerUuid));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ensurePlayerLookupFailure() throws Exception {
|
||||
mockMvc.perform(get("/player/" + testInvalidPlayer)
|
||||
|
Loading…
Reference in New Issue
Block a user