Browse Source

Fix formatting

pull/19492/head
Stephane Nicoll 6 years ago
parent
commit
334f3e08ae
  1. 13
      spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/DispatcherServletAutoConfigurationTests.java

13
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/DispatcherServletAutoConfigurationTests.java

@ -83,13 +83,12 @@ class DispatcherServletAutoConfigurationTests { @@ -83,13 +83,12 @@ class DispatcherServletAutoConfigurationTests {
@Test
void registrationOverrideWithAutowiredServlet() {
this.contextRunner.withUserConfiguration(CustomAutowiredRegistration.class)
.run((context) -> {
ServletRegistrationBean<?> registration = context.getBean(ServletRegistrationBean.class);
assertThat(registration.getUrlMappings()).containsExactly("/foo");
assertThat(registration.getServletName()).isEqualTo("customDispatcher");
assertThat(context).hasSingleBean(DispatcherServlet.class);
});
this.contextRunner.withUserConfiguration(CustomAutowiredRegistration.class).run((context) -> {
ServletRegistrationBean<?> registration = context.getBean(ServletRegistrationBean.class);
assertThat(registration.getUrlMappings()).containsExactly("/foo");
assertThat(registration.getServletName()).isEqualTo("customDispatcher");
assertThat(context).hasSingleBean(DispatcherServlet.class);
});
}
@Test

Loading…
Cancel
Save