Polish formatting

This commit is contained in:
Phillip Webb
2016-12-19 10:30:48 -08:00
parent e578ace7d7
commit bd74c3d327
346 changed files with 578 additions and 53 deletions

View File

@@ -76,6 +76,7 @@ public class SpringBootDependencyInjectionTestExecutionListenerTests {
@Configuration
@ImportAutoConfiguration(JacksonAutoConfiguration.class)
static class Config {
}
}

View File

@@ -115,6 +115,7 @@ public class PropertyMappingContextCustomizerFactoryTests {
@NoMappingAnnotation
static class NoMapping {
}
@Retention(RetentionPolicy.RUNTIME)
@@ -124,6 +125,7 @@ public class PropertyMappingContextCustomizerFactoryTests {
@TypeMappingAnnotation
static class TypeMapping {
}
@Configuration
@@ -142,10 +144,12 @@ public class PropertyMappingContextCustomizerFactoryTests {
@AttributeMappingAnnotation
static class AttributeMapping {
}
@AttributeMappingAnnotation("Other")
static class OtherMapping {
}
@Retention(RetentionPolicy.RUNTIME)

View File

@@ -39,7 +39,8 @@ public class ExampleControllerAdvice {
@ExceptionHandler(NoHandlerFoundException.class)
@ResponseStatus(HttpStatus.BAD_REQUEST)
public ResponseEntity<String> noHandlerFoundHandler(NoHandlerFoundException exception) {
public ResponseEntity<String> noHandlerFoundHandler(
NoHandlerFoundException exception) {
return ResponseEntity.badRequest()
.body("Invalid request: " + exception.getRequestURL());
}

View File

@@ -45,8 +45,7 @@ public class WebMvcTestCustomDispatcherServletIntegrationTests {
@Test
public void dispatcherServletIsCustomized() throws Exception {
this.mvc.perform(get("/does-not-exist"))
.andExpect(status().isBadRequest())
this.mvc.perform(get("/does-not-exist")).andExpect(status().isBadRequest())
.andExpect(content().string("Invalid request: /does-not-exist"));
}