Remove trailing whitespace in Java source code
This commit is contained in:
@@ -28,30 +28,30 @@ import org.springframework.web.cors.CorsConfiguration;
|
||||
|
||||
/**
|
||||
* Test fixture with a {@link CorsConfigurer}.
|
||||
*
|
||||
*
|
||||
* @author Sebastien Deleuze
|
||||
*/
|
||||
public class CorsConfigurerTests {
|
||||
|
||||
|
||||
private CorsConfigurer configurer;
|
||||
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
this.configurer = new CorsConfigurer();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void noCorsConfigured() {
|
||||
assertTrue(this.configurer.getCorsConfigurations().isEmpty());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void multipleCorsConfigured() {
|
||||
this.configurer.enableCors("/foo");
|
||||
this.configurer.enableCors("/bar");
|
||||
assertEquals(2, this.configurer.getCorsConfigurations().size());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void defaultCorsRegistration() {
|
||||
this.configurer.enableCors();
|
||||
@@ -64,7 +64,7 @@ public class CorsConfigurerTests {
|
||||
assertEquals(true, config.getAllowCredentials());
|
||||
assertEquals(Long.valueOf(1800), config.getMaxAge());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void customizedCorsRegistration() {
|
||||
this.configurer.enableCors("/foo").allowedOrigins("http://domain2.com", "http://domain2.com")
|
||||
@@ -80,5 +80,5 @@ public class CorsConfigurerTests {
|
||||
assertEquals(false, config.getAllowCredentials());
|
||||
assertEquals(Long.valueOf(3600), config.getMaxAge());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -271,7 +271,7 @@ public class WebMvcConfigurationSupportExtensionTests {
|
||||
assertEquals("/", accessor.getPropertyValue("prefix"));
|
||||
assertEquals(".jsp", accessor.getPropertyValue("suffix"));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void crossOrigin() {
|
||||
Map<String, CorsConfiguration> configs = this.config.getCorsConfigurations();
|
||||
@@ -407,7 +407,7 @@ public class WebMvcConfigurationSupportExtensionTests {
|
||||
public void configureCors(CorsConfigurer registry) {
|
||||
registry.enableCors("/resources/**");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private class TestPathHelper extends UrlPathHelper {}
|
||||
|
||||
@@ -113,7 +113,7 @@ public class CorsAbstractHandlerMappingTests {
|
||||
assertNotNull(config);
|
||||
assertArrayEquals(config.getAllowedOrigins().toArray(), new String[]{"*"});
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void actualRequestWithMappedCorsConfiguration() throws Exception {
|
||||
CorsConfiguration config = new CorsConfiguration();
|
||||
|
||||
@@ -236,7 +236,7 @@ public class MvcUriComponentsBuilderTests {
|
||||
assertThat(uriComponents.toUriString(), startsWith("http://localhost"));
|
||||
assertThat(uriComponents.toUriString(), endsWith("/extended/else"));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testFromMethodCallWithTypeLevelUriVars() {
|
||||
UriComponents uriComponents = fromMethodCall(on(
|
||||
@@ -430,7 +430,7 @@ public class MvcUriComponentsBuilderTests {
|
||||
static class ExtendedController extends ControllerWithMethods {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("/user/{userId}/contacts")
|
||||
static class UserContactController {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user