Fix formatting

This commit is contained in:
Stephane Nicoll 2019-12-30 15:08:50 +01:00
parent 18d97318df
commit 334f3e08ae

View File

@ -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