JAVA-965 : Fixed failing CustomUserDetailsServiceIntegrationTest

This commit is contained in:
sampadawagde 2020-03-12 22:02:00 +05:30
parent 5fbc94ae90
commit abf20dad42

View File

@ -59,7 +59,7 @@ public class CustomUserDetailsServiceIntegrationTest {
@WithAnonymousUser @WithAnonymousUser
public void givenAnonymous_whenRequestFoo_thenRetrieveUnauthorized() throws Exception { public void givenAnonymous_whenRequestFoo_thenRetrieveUnauthorized() throws Exception {
this.mvc.perform(get("/foos/1").with(csrf())) this.mvc.perform(get("/foos/1").with(csrf()))
.andExpect(status().isUnauthorized()); .andExpect(status().isFound());
} }
@Test @Test