|
|
@ -133,4 +133,19 @@ class ServerAppTest |
|
|
|
assertEquals(200, res.getStatus()); |
|
|
|
then(userController).should().updateUser(any(), any()); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void getPlayers() throws JsonProcessingException |
|
|
|
{ |
|
|
|
when(userController.getCompleteUser(any(), any())).thenReturn(mock(Response.class)); |
|
|
|
|
|
|
|
String url = "/users"; |
|
|
|
|
|
|
|
ApiTestUtils.TestResponse<String> res = new ApiTestUtils<String>() |
|
|
|
.request("GET", url, null, null, String.class); |
|
|
|
|
|
|
|
assertNotNull(res); |
|
|
|
assertEquals(200, res.getStatus()); |
|
|
|
then(userController).should().getCompleteUser(any(), any()); |
|
|
|
} |
|
|
|
} |