Package org.springframework.boot.test.context
Classes and annotations related to configuring Spring's
ApplicationContext
for tests.Interface Summary Interface Description DefaultTestExecutionListenersPostProcessor Callback interface trigger fromSpringBootTestContextBootstrapper
that can be used to post-process the list of defaultTestExecutionListener
classes to be used by a test.Class Summary Class Description ConfigFileApplicationContextInitializer ApplicationContextInitializer
that can be used with theContextConfiguration.initializers()
to trigger loading of application.properties.SpringBootContextLoader AContextLoader
that can be used to test Spring Boot applications (those that normally startup usingSpringApplication
).SpringBootTestContextBootstrapper TestContextBootstrapper
for Spring Boot.Enum Summary Enum Description SpringBootTest.WebEnvironment An enumeration web environment modes.Annotation Types Summary Annotation Type Description SpringBootTest Annotation that can be specified on a test class that runs Spring Boot based tests.TestComponent @Component
that can be used when a bean is intended only for tests, and should be excluded from Spring Boot's component scanning.TestConfiguration @Configuration
that can be used to define additional beans or customizations for a test.