Polish formatting
This commit is contained in:
@@ -76,6 +76,7 @@ public class SpringBootDependencyInjectionTestExecutionListenerTests {
|
||||
@Configuration
|
||||
@ImportAutoConfiguration(JacksonAutoConfiguration.class)
|
||||
static class Config {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user