1
0
mirror of synced 2026-05-22 13:23:17 +00:00

Apply Checkstyle WhitespaceAfterCheck module

This commit is contained in:
Johnny Lim
2017-11-16 06:19:44 +09:00
committed by Rob Winch
parent 523332d51f
commit b6895e6359
88 changed files with 811 additions and 808 deletions
@@ -66,7 +66,7 @@ public class Sec2935Tests {
@Test
public void postProcessorUserNoUser() throws Exception {
mvc
.perform(get("/admin/abc").with(user("user").roles("ADMIN","USER")))
.perform(get("/admin/abc").with(user("user").roles("ADMIN", "USER")))
.andExpect(status().isNotFound())
.andExpect(authenticated().withUsername("user"));
@@ -79,7 +79,7 @@ public class Sec2935Tests {
@Test
public void postProcessorUserOtherUser() throws Exception {
mvc
.perform(get("/admin/abc").with(user("user1").roles("ADMIN","USER")))
.perform(get("/admin/abc").with(user("user1").roles("ADMIN", "USER")))
.andExpect(status().isNotFound())
.andExpect(authenticated().withUsername("user1"));
@@ -93,7 +93,7 @@ public class Sec2935Tests {
@Test
public void postProcessorUserWithMockUser() throws Exception {
mvc
.perform(get("/admin/abc").with(user("user1").roles("ADMIN","USER")))
.perform(get("/admin/abc").with(user("user1").roles("ADMIN", "USER")))
.andExpect(status().isNotFound())
.andExpect(authenticated().withUsername("user1"));
@@ -112,7 +112,7 @@ public class Sec2935Tests {
.build();
mvc
.perform(get("/admin/abc").with(user("user1").roles("ADMIN","USER")))
.perform(get("/admin/abc").with(user("user1").roles("ADMIN", "USER")))
.andExpect(status().isNotFound())
.andExpect(authenticated().withUsername("user1"));
@@ -132,7 +132,7 @@ public class Sec2935Tests {
.build();
mvc
.perform(get("/admin/abc").with(user("user1").roles("ADMIN","USER")))
.perform(get("/admin/abc").with(user("user1").roles("ADMIN", "USER")))
.andExpect(status().isNotFound())
.andExpect(authenticated().withUsername("user1"));
@@ -159,7 +159,7 @@ public class SecurityMockMvcRequestPostProcessorsCsrfTests {
MockHttpServletRequestBuilder requestWithCsrf = post("/")
.param(token.getParameterName(), token.getToken())
.session((MockHttpSession)request.getSession());
.session((MockHttpSession) request.getSession());
this.mockMvc.perform(requestWithCsrf)
.andExpect(status().isOk());
// @formatter:on
@@ -28,6 +28,6 @@ import org.springframework.security.test.context.support.WithMockUser;
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@WithMockUser(value="rob",roles="ADMIN")
@WithMockUser(value="rob", roles="ADMIN")
public @interface WithAdminRob {
}
@@ -103,8 +103,8 @@ public class WithUserDetailsAuthenticationTests {
auth
.inMemoryAuthentication()
.withUser("user").password("password").roles("USER").and()
.withUser("admin").password("password").roles("USER","ADMIN");
.withUser("admin").password("password").roles("USER", "ADMIN");
}
// @formatter:on
}
}
}
@@ -103,8 +103,8 @@ public class WithUserDetailsClassLevelAuthenticationTests {
auth
.inMemoryAuthentication()
.withUser("user").password("password").roles("USER").and()
.withUser("admin").password("password").roles("USER","ADMIN");
.withUser("admin").password("password").roles("USER", "ADMIN");
}
// @formatter:on
}
}
}