use of fr.codechill.spring.security.JwtAuthenticationRequest in project code-chill by CodeChillAlluna.
the class AuthenticationRestControllerTest method successfulAuthenticationWithAnonymousUser.
@Test
@WithAnonymousUser
public void successfulAuthenticationWithAnonymousUser() throws Exception {
JwtAuthenticationRequest jwtAuthenticationRequest = new JwtAuthenticationRequest("user", "password");
this.mvc.perform(post("/auth").contentType(MediaType.APPLICATION_JSON).content(new ObjectMapper().writeValueAsString(jwtAuthenticationRequest))).andExpect(status().is2xxSuccessful());
}
Aggregations