Package org.springframework.boot.test.context
package org.springframework.boot.test.context
Classes and annotations related to configuring Spring's
ApplicationContext
for
tests.-
ClassDescriptionUtility class to find a class annotated with a particular annotation in a hierarchy.
ApplicationContextInitializer
that can be used with theContextConfiguration.initializers()
to trigger loading ofConfigData
such as application.properties.Callback interface trigger fromSpringBootTestContextBootstrapper
that can be used to post-process the list of defaultTestExecutionListeners
to be used by a test.TestURLClassLoader
that can filter the classes and resources it can load.Filter to restrict the classes that can be loaded.Filter to restrict the resources that can be loaded.Filter to restrict the packages that can be loaded.Encapsulates the merged context configuration declared on a test class and all of its superclasses for a reactive web application.AContextLoader
that can be used to test Spring Boot applications (those that normally startup usingSpringApplication
).Annotation that can be specified on a test class that runs Spring Boot based tests.An enumeration web environment modes.TestContextBootstrapper
for Spring Boot.@Component
that can be used when a bean is intended only for tests, and should be excluded from Spring Boot's component scanning.@Configuration
that can be used to define additional beans or customizations for a test.