Browse Source

Merge branch '4.0.x'

pull/49364/head
Stéphane Nicoll 3 weeks ago
parent
commit
3f48dd1db9
  1. 4
      core/spring-boot/src/test/java/org/springframework/boot/web/servlet/support/SpringBootServletInitializerTests.java

4
core/spring-boot/src/test/java/org/springframework/boot/web/servlet/support/SpringBootServletInitializerTests.java

@ -35,7 +35,6 @@ import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith; import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.ArgumentCaptor; import org.mockito.ArgumentCaptor;
import org.springframework.boot.DefaultApplicationArguments;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent; import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
@ -189,7 +188,8 @@ class SpringBootServletInitializerTests {
@Test @Test
void executableWarThatUsesServletInitializerDoesNotHaveErrorPageFilterConfigured() { void executableWarThatUsesServletInitializerDoesNotHaveErrorPageFilterConfigured() {
try (ConfigurableApplicationContext context = new SpringApplication(DefaultApplicationArguments.class).run()) { try (ConfigurableApplicationContext context = new SpringApplication(DefaultSpringBootServletInitializer.class)
.run()) {
assertThat(context.getBeansOfType(ErrorPageFilter.class)).isEmpty(); assertThat(context.getBeansOfType(ErrorPageFilter.class)).isEmpty();
} }
} }

Loading…
Cancel
Save