All Classes
All Classes Interface Summary Class Summary Enum Summary Annotation Types Summary Class Description AbstractApplicationContextRunner<SELF extends AbstractApplicationContextRunner<SELF,C,A>,C extends org.springframework.context.ConfigurableApplicationContext,A extends ApplicationContextAssertProvider<C>> Utility design to run and anApplicationContext
and provide AssertJ style assertions.AbstractJsonMarshalTester<T> Base class for AssertJ based JSON marshal testers.AbstractJsonMarshalTester.FieldInitializer<M> Utility class used to support field initialization.AnnotatedClassFinder Utility class to find a class annotated with a particular annotation in a hierarchy.ApplicationContextAssert<C extends org.springframework.context.ApplicationContext> AssertJassertions
that can be applied to anApplicationContext
.ApplicationContextAssert.Scope The scope of an assertion.ApplicationContextAssertProvider<C extends org.springframework.context.ApplicationContext> AnApplicationContext
that additionally supports AssertJ style assertions.ApplicationContextRunner AnApplicationContext runner
for a standard, non-web environmentConfigurableApplicationContext
.ApplicationContextTestUtils Application context related test utilities.AssertableApplicationContext AnApplicationContext
that additionally supports AssertJ style assertions.AssertableReactiveWebApplicationContext AReactiveWebApplicationContext
that additionally supports AssertJ style assertions.AssertableWebApplicationContext AWebApplicationContext
that additionally supports AssertJ style assertions.BasicJsonTester AssertJ based JSON tester that works with basic JSON strings.ConfigFileApplicationContextInitializer ApplicationContextInitializer
that can be used with theContextConfiguration.initializers()
to trigger loading of application.properties.ContextConsumer<C extends org.springframework.context.ApplicationContext> Callback interface used to process anApplicationContext
with the ability to throw a (checked) exception.DefaultTestExecutionListenersPostProcessor Callback interface trigger fromSpringBootTestContextBootstrapper
that can be used to post-process the list of defaultTestExecutionListener
classes to be used by a test.FilteredClassLoader TestURLClassLoader
that can filter the classes and resources it can load.FilteredClassLoader.ClassFilter Filter to restrict the classes that can be loaded.FilteredClassLoader.ClassPathResourceFilter Filter to restrict the resources that can be loaded.FilteredClassLoader.PackageFilter Filter to restrict the packages that can be loaded.GsonTester<T> AssertJ based JSON tester backed by Gson.JacksonTester<T> AssertJ based JSON tester backed by Jackson.JsonbTester<T> AssertJ based JSON tester backed by Jsonb.JsonContent<T> JSON content created usually from a JSON tester.JsonContentAssert AssertJAssert
forJsonContent
.LocalHostUriTemplateHandler UriTemplateHandler
will automatically prefix relative URIs withlocalhost:${local.server.port}
.LocalHostWebClient WebClient
will automatically prefix relative URLs withlocalhost:${local.server.port}
.LocalHostWebConnectionHtmlUnitDriver LocalHostWebConnectionHtmlUnitDriver
will automatically prefix relative URLs withlocalhost:${local.server.port}
.MockBean Annotation that can be used to add mocks to a SpringApplicationContext
.MockBeans Container annotation that aggregates severalMockBean
annotations.MockitoPostProcessor MockitoTestExecutionListener TestExecutionListener
to triggerMockitoAnnotations.initMocks(Object)
when@MockBean
annotations are used.MockReset Reset strategy used on a mock bean.MockServerRestTemplateCustomizer RestTemplateCustomizer
that can be applied to aRestTemplateBuilder
instances to addMockRestServiceServer
support.ObjectContent<T> Object content usually created fromAbstractJsonMarshalTester
.ObjectContentAssert<A> AssertJAssert
forObjectContent
.OutputCapture JUnit@Rule
to capture output from System.out and System.err.ReactiveWebApplicationContextRunner AnApplicationContext runner
for aConfigurableReactiveWebApplicationContext
.ReactiveWebMergedContextConfiguration Encapsulates the merged context configuration declared on a test class and all of its superclasses for a reactive web application.ResetMocksTestExecutionListener TestExecutionListener
to reset any mock beans that have been marked with aMockReset
.RootUriRequestExpectationManager RequestExpectationManager
that strips the specified root URI from the request before verification.SpringBootContextLoader AContextLoader
that can be used to test Spring Boot applications (those that normally startup usingSpringApplication
).SpringBootMockServletContext MockServletContext
implementation for Spring Boot.SpringBootTest Annotation that can be specified on a test class that runs Spring Boot based tests.SpringBootTest.WebEnvironment An enumeration web environment modes.SpringBootTestContextBootstrapper TestContextBootstrapper
for Spring Boot.SpyBean Annotation that can be used to apply Mockito spies to a SpringApplicationContext
.SpyBeans Container annotation that aggregates severalSpyBean
annotations.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.TestPropertyValues Test utilities for adding properties.TestPropertyValues.Pair A single name value pair.TestPropertyValues.Type The type of property source.TestRestTemplate Convenient alternative ofRestTemplate
that is suitable for integration tests.TestRestTemplate.CustomHttpComponentsClientHttpRequestFactory HttpComponentsClientHttpRequestFactory
to apply customizations.TestRestTemplate.HttpClientOption Options used to customize the Apache Http Client if it is used.WebApplicationContextRunner AnApplicationContext runner
for a Servlet basedConfigurableWebApplicationContext
.