All Classes
All Classes Interface Summary Class Summary Enum Summary Annotation Types Summary Class Description AbstractJsonMarshalTester<T> Base class for AssertJ based JSON marshal testers.AbstractJsonMarshalTester.FieldInitializer<M> Utility class used to support field initialization.ApplicationContextTestUtils Application context related test utilities.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.DefaultTestExecutionListenersPostProcessor Callback interface trigger fromSpringBootTestContextBootstrapper
that can be used to post-process the list of defaultTestExecutionListener
classes to be used by a test.EnvironmentTestUtils Test utilities for setting environment values.GsonTester<T> AssertJ based JSON tester backed by Gson.JacksonTester<T> AssertJ based JSON tester backed by Jackson.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.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.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.