- AbstractApplicationContextRunner<SELF extends AbstractApplicationContextRunner<SELF,C,A>,C extends org.springframework.context.ConfigurableApplicationContext,A extends ApplicationContextAssertProvider<C>> - Class in org.springframework.boot.test.context.runner
-
Utility design to run an ApplicationContext
and provide AssertJ style
assertions.
- AbstractApplicationContextRunner(Supplier<C>) - Constructor for class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
-
- AbstractApplicationContextRunner(Supplier<C>, boolean, List<ApplicationContextInitializer<? super C>>, TestPropertyValues, TestPropertyValues, ClassLoader, ApplicationContext, List<AbstractApplicationContextRunner<SELF, C, A>.BeanRegistration<?>>, List<Configurations>) - Constructor for class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
-
- AbstractApplicationContextRunner.BeanRegistration<T> - Class in org.springframework.boot.test.context.runner
-
A Bean registration to be applied when the context loaded.
- AbstractJsonMarshalTester<T> - Class in org.springframework.boot.test.json
-
Base class for AssertJ based JSON marshal testers.
- AbstractJsonMarshalTester() - Constructor for class org.springframework.boot.test.json.AbstractJsonMarshalTester
-
- AbstractJsonMarshalTester(Class<?>, ResolvableType) - Constructor for class org.springframework.boot.test.json.AbstractJsonMarshalTester
-
- AbstractJsonMarshalTester.FieldInitializer<M> - Class in org.springframework.boot.test.json
-
Utility class used to support field initialization.
- accept(C) - Method in interface org.springframework.boot.test.context.runner.ContextConsumer
-
Performs this operation on the supplied context
.
- addTo(Map<String, Object>) - Method in class org.springframework.boot.test.util.TestPropertyValues.Pair
-
- after() - Static method in enum org.springframework.boot.test.mock.mockito.MockReset
-
Create settings
to be used with mocks where reset should occur
after each test method runs.
- afterAll(ExtensionContext) - Method in class org.springframework.boot.test.system.OutputCaptureExtension
-
- afterEach(ExtensionContext) - Method in class org.springframework.boot.test.system.OutputCaptureExtension
-
- afterTestMethod(TestContext) - Method in class org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener
-
- afterTestMethod(TestContext) - Method in class org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener
-
- and(String...) - Method in class org.springframework.boot.test.util.TestPropertyValues
-
- and(Iterable<String>) - Method in class org.springframework.boot.test.util.TestPropertyValues
-
- and(Stream<String>) - Method in class org.springframework.boot.test.util.TestPropertyValues
-
- and(Map<String, String>) - Method in class org.springframework.boot.test.util.TestPropertyValues
-
- and(Stream<T>, Function<T, TestPropertyValues.Pair>) - Method in class org.springframework.boot.test.util.TestPropertyValues
-
- AnnotatedClassFinder - Class in org.springframework.boot.test.context
-
Utility class to find a class annotated with a particular annotation in a hierarchy.
- AnnotatedClassFinder(Class<? extends Annotation>) - Constructor for class org.springframework.boot.test.context.AnnotatedClassFinder
-
Create a new instance with the annotationType
to find.
- ApplicationContextAssert<C extends org.springframework.context.ApplicationContext> - Class in org.springframework.boot.test.context.assertj
-
AssertJ assertions
that can be applied to an
ApplicationContext
.
- ApplicationContextAssert.Scope - Enum in org.springframework.boot.test.context.assertj
-
The scope of an assertion.
- ApplicationContextAssertProvider<C extends org.springframework.context.ApplicationContext> - Interface in org.springframework.boot.test.context.assertj
-
An ApplicationContext
that additionally supports AssertJ style assertions.
- ApplicationContextRunner - Class in org.springframework.boot.test.context.runner
-
- ApplicationContextRunner() - Constructor for class org.springframework.boot.test.context.runner.ApplicationContextRunner
-
- ApplicationContextRunner(Supplier<ConfigurableApplicationContext>) - Constructor for class org.springframework.boot.test.context.runner.ApplicationContextRunner
-
- ApplicationContextTestUtils - Class in org.springframework.boot.test.util
-
Application context related test utilities.
- ApplicationContextTestUtils() - Constructor for class org.springframework.boot.test.util.ApplicationContextTestUtils
-
- apply(ConfigurableApplicationContext) - Method in class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner.BeanRegistration
-
- apply(MockReset, MockSettings) - Static method in enum org.springframework.boot.test.mock.mockito.MockReset
-
- apply(Statement, Description) - Method in class org.springframework.boot.test.system.OutputCaptureRule
-
- applySuffix(String) - Method in enum org.springframework.boot.test.util.TestPropertyValues.Type
-
- applyTo(ConfigurableApplicationContext) - Method in class org.springframework.boot.test.util.TestPropertyValues
-
Add the properties from the underlying map to the environment owned by an
ApplicationContext
.
- applyTo(ConfigurableEnvironment) - Method in class org.springframework.boot.test.util.TestPropertyValues
-
Add the properties from the underlying map to the environment.
- applyTo(ConfigurableEnvironment, TestPropertyValues.Type) - Method in class org.springframework.boot.test.util.TestPropertyValues
-
Add the properties from the underlying map to the environment using the specified
property source type.
- applyTo(ConfigurableEnvironment, TestPropertyValues.Type, String) - Method in class org.springframework.boot.test.util.TestPropertyValues
-
Add the properties from the underlying map to the environment using the specified
property source type and name.
- applyToSystemProperties(Callable<T>) - Method in class org.springframework.boot.test.util.TestPropertyValues
-
Add the properties to the system properties
for the
duration of the call
, restoring previous values when the call completes.
- asArray() - Method in class org.springframework.boot.test.json.ObjectContentAssert
-
Verifies that the actual value is an array, and returns an array assertion, to
allow chaining of array-specific assertions from this call.
- asMap() - Method in class org.springframework.boot.test.json.ObjectContentAssert
-
Verifies that the actual value is a map, and returns a map assertion, to allow
chaining of map-specific assertions from this call.
- AssertableApplicationContext - Interface in org.springframework.boot.test.context.assertj
-
An ApplicationContext
that additionally supports AssertJ style assertions.
- AssertableReactiveWebApplicationContext - Interface in org.springframework.boot.test.context.assertj
-
A ReactiveWebApplicationContext
that additionally supports AssertJ style
assertions.
- AssertableWebApplicationContext - Interface in org.springframework.boot.test.context.assertj
-
A WebApplicationContext
that additionally supports AssertJ style assertions.
- assertThat() - Method in interface org.springframework.boot.test.context.assertj.ApplicationContextAssertProvider
-
- assertThat() - Method in class org.springframework.boot.test.json.JsonContent
-
- assertThat() - Method in class org.springframework.boot.test.json.ObjectContent
-
- empty() - Static method in class org.springframework.boot.test.util.TestPropertyValues
-
- exchange(String, HttpMethod, HttpEntity<?>, Class<T>, Object...) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, writing the given request entity
to the request, and returns the response as ResponseEntity
.
- exchange(String, HttpMethod, HttpEntity<?>, Class<T>, Map<String, ?>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, writing the given request entity
to the request, and returns the response as ResponseEntity
.
- exchange(URI, HttpMethod, HttpEntity<?>, Class<T>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, writing the given request entity
to the request, and returns the response as ResponseEntity
.
- exchange(String, HttpMethod, HttpEntity<?>, ParameterizedTypeReference<T>, Object...) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, writing the given request entity
to the request, and returns the response as ResponseEntity
.
- exchange(String, HttpMethod, HttpEntity<?>, ParameterizedTypeReference<T>, Map<String, ?>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, writing the given request entity
to the request, and returns the response as ResponseEntity
.
- exchange(URI, HttpMethod, HttpEntity<?>, ParameterizedTypeReference<T>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, writing the given request entity
to the request, and returns the response as ResponseEntity
.
- exchange(RequestEntity<?>, Class<T>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Execute the request specified in the given RequestEntity
and return the
response as ResponseEntity
.
- exchange(RequestEntity<?>, ParameterizedTypeReference<T>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Execute the request specified in the given RequestEntity
and return the
response as ResponseEntity
.
- execute(String, HttpMethod, RequestCallback, ResponseExtractor<T>, Object...) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback
, and reading the response with a ResponseExtractor
.
- execute(String, HttpMethod, RequestCallback, ResponseExtractor<T>, Map<String, ?>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback
, and reading the response with a ResponseExtractor
.
- execute(URI, HttpMethod, RequestCallback, ResponseExtractor<T>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Execute the HTTP method to the given URL, preparing the request with the
RequestCallback
, and reading the response with a ResponseExtractor
.
- expect(Matcher<? super String>) - Method in class org.springframework.boot.test.system.OutputCaptureRule
-
Verify that the output is matched by the supplied matcher
.
- expectRequest(ExpectedCount, RequestMatcher) - Method in class org.springframework.boot.test.web.client.RootUriRequestExpectationManager
-
- extractingJsonPathArrayValue(CharSequence, Object...) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Extract the array value at the given JSON path for further object assertions.
- extractingJsonPathBooleanValue(CharSequence, Object...) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Extract the boolean value at the given JSON path for further object assertions.
- extractingJsonPathMapValue(CharSequence, Object...) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Extract the map value at the given JSON path for further object assertions.
- extractingJsonPathNumberValue(CharSequence, Object...) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Extract the number value at the given JSON path for further object assertions.
- extractingJsonPathStringValue(CharSequence, Object...) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Extract the string value at the given JSON path for further object assertions.
- extractingJsonPathValue(CharSequence, Object...) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Extract the value at the given JSON path for further object assertions.
- FieldInitializer(Class<? extends AbstractJsonMarshalTester>) - Constructor for class org.springframework.boot.test.json.AbstractJsonMarshalTester.FieldInitializer
-
- FilteredClassLoader - Class in org.springframework.boot.test.context
-
Test URLClassLoader
that can filter the classes and resources it can load.
- FilteredClassLoader(Class<?>...) - Constructor for class org.springframework.boot.test.context.FilteredClassLoader
-
- FilteredClassLoader(String...) - Constructor for class org.springframework.boot.test.context.FilteredClassLoader
-
- FilteredClassLoader(ClassPathResource...) - Constructor for class org.springframework.boot.test.context.FilteredClassLoader
-
- FilteredClassLoader(Predicate<String>...) - Constructor for class org.springframework.boot.test.context.FilteredClassLoader
-
- FilteredClassLoader.ClassFilter - Class in org.springframework.boot.test.context
-
Filter to restrict the classes that can be loaded.
- FilteredClassLoader.ClassPathResourceFilter - Class in org.springframework.boot.test.context
-
Filter to restrict the resources that can be loaded.
- FilteredClassLoader.PackageFilter - Class in org.springframework.boot.test.context
-
Filter to restrict the packages that can be loaded.
- findFromClass(Class<?>) - Method in class org.springframework.boot.test.context.AnnotatedClassFinder
-
Find the first Class
that is annotated with the target annotation, starting
from the package defined by the given source
up to the root.
- findFromPackage(String) - Method in class org.springframework.boot.test.context.AnnotatedClassFinder
-
Find the first Class
that is annotated with the target annotation, starting
from the package defined by the given source
up to the root.
- forRestTemplate(RestTemplate, RequestExpectationManager) - Static method in class org.springframework.boot.test.web.client.RootUriRequestExpectationManager
-
Return RequestExpectationManager
to be used for binding with the specified
RestTemplate
.
- forView(Class<?>) - Method in class org.springframework.boot.test.json.JacksonTester
-
Returns a new instance of
JacksonTester
with the view that should be used
for json serialization/deserialization.
- from(CharSequence) - Method in class org.springframework.boot.test.json.BasicJsonTester
-
Create JSON content from the specified String source.
- from(String, Class<?>) - Method in class org.springframework.boot.test.json.BasicJsonTester
-
Create JSON content from the specified resource path.
- from(byte[]) - Method in class org.springframework.boot.test.json.BasicJsonTester
-
Create JSON content from the specified JSON bytes.
- from(File) - Method in class org.springframework.boot.test.json.BasicJsonTester
-
Create JSON content from the specified JSON file.
- from(InputStream) - Method in class org.springframework.boot.test.json.BasicJsonTester
-
Create JSON content from the specified JSON input stream.
- from(Resource) - Method in class org.springframework.boot.test.json.BasicJsonTester
-
Create JSON content from the specified JSON resource.
- fromMapEntry(Map.Entry<String, String>) - Static method in class org.springframework.boot.test.util.TestPropertyValues.Pair
-
- get(Class<T>, Class<? extends C>, Supplier<? extends C>) - Static method in interface org.springframework.boot.test.context.assertj.ApplicationContextAssertProvider
-
- get(Supplier<? extends ConfigurableApplicationContext>) - Static method in interface org.springframework.boot.test.context.assertj.AssertableApplicationContext
-
- get(Supplier<? extends ConfigurableReactiveWebApplicationContext>) - Static method in interface org.springframework.boot.test.context.assertj.AssertableReactiveWebApplicationContext
-
- get(Supplier<? extends ConfigurableWebApplicationContext>) - Static method in interface org.springframework.boot.test.context.assertj.AssertableWebApplicationContext
-
- get(String) - Method in class org.springframework.boot.test.web.htmlunit.webdriver.LocalHostWebConnectionHtmlUnitDriver
-
- getAll() - Method in interface org.springframework.boot.test.system.CapturedOutput
-
Return all content (both System.out
and System.err
) in the order that it was captured.
- getAll() - Method in class org.springframework.boot.test.system.OutputCaptureRule
-
- getAnnotation(Class<?>) - Method in class org.springframework.boot.test.context.SpringBootTestContextBootstrapper
-
- getApplicationContext() - Method in class org.springframework.boot.test.context.assertj.ApplicationContextAssert
-
- getBean(Class<T>) - Method in class org.springframework.boot.test.context.assertj.ApplicationContextAssert
-
Obtain a single bean of the given type from the application context (or ancestors),
the bean becoming the object under test.
- getBean(Class<T>, ApplicationContextAssert.Scope) - Method in class org.springframework.boot.test.context.assertj.ApplicationContextAssert
-
Obtain a single bean of the given type from the application context, the bean
becoming the object under test.
- getBean(String) - Method in class org.springframework.boot.test.context.assertj.ApplicationContextAssert
-
Obtain a single bean of the given name from the application context, the bean
becoming the object under test.
- getBean(String, Class<T>) - Method in class org.springframework.boot.test.context.assertj.ApplicationContextAssert
-
Obtain a single bean of the given name and type from the application context, the
bean becoming the object under test.
- getBeanNames(Class<T>) - Method in class org.springframework.boot.test.context.assertj.ApplicationContextAssert
-
Obtain the beans names of the given type from the application context, the names
becoming the object array under test.
- getBeans(Class<T>) - Method in class org.springframework.boot.test.context.assertj.ApplicationContextAssert
-
Obtain a map bean names and instances of the given type from the application
context (or ancestors), the map becoming the object under test.
- getBeans(Class<T>, ApplicationContextAssert.Scope) - Method in class org.springframework.boot.test.context.assertj.ApplicationContextAssert
-
Obtain a map bean names and instances of the given type from the application
context, the map becoming the object under test.
- getClasses(Class<?>) - Method in class org.springframework.boot.test.context.SpringBootTestContextBootstrapper
-
- getDefaultContextLoaderClass(Class<?>) - Method in class org.springframework.boot.test.context.SpringBootTestContextBootstrapper
-
- getDefaultTestExecutionListenerClasses() - Method in class org.springframework.boot.test.context.SpringBootTestContextBootstrapper
-
- getDifferentiatorPropertySourceProperty() - Method in class org.springframework.boot.test.context.SpringBootTestContextBootstrapper
-
Return a "differentiator" property to ensure that there is something to
differentiate regular tests and bootstrapped tests.
- getEnvironment() - Method in class org.springframework.boot.test.context.SpringBootContextLoader
-
Builds a new ConfigurableEnvironment
instance.
- getErr() - Method in interface org.springframework.boot.test.system.CapturedOutput
-
Return System.err
content in the order that it was captured.
- getErr() - Method in class org.springframework.boot.test.system.OutputCaptureRule
-
- getExpectationManagers() - Method in class org.springframework.boot.test.web.client.MockServerRestTemplateCustomizer
-
- getFailure() - Method in class org.springframework.boot.test.context.assertj.ApplicationContextAssert
-
Obtain the failure that stopped the application context from running, the failure
becoming the object under test.
- getForEntity(String, Class<T>, Object...) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Retrieve an entity by doing a GET on the specified URL.
- getForEntity(String, Class<T>, Map<String, ?>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Retrieve a representation by doing a GET on the URI template.
- getForEntity(URI, Class<T>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Retrieve a representation by doing a GET on the URL .
- getForObject(String, Class<T>, Object...) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Retrieve a representation by doing a GET on the specified URL.
- getForObject(String, Class<T>, Map<String, ?>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Retrieve a representation by doing a GET on the URI template.
- getForObject(URI, Class<T>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Retrieve a representation by doing a GET on the URL .
- getInitializers(MergedContextConfiguration, SpringApplication) - Method in class org.springframework.boot.test.context.SpringBootContextLoader
-
Return the initializers
that will be applied
to the context.
- getInlinedProperties(MergedContextConfiguration) - Method in class org.springframework.boot.test.context.SpringBootContextLoader
-
- getJson() - Method in class org.springframework.boot.test.json.JsonContent
-
Return the actual JSON content string.
- getJsonContent(String) - Method in class org.springframework.boot.test.json.AbstractJsonMarshalTester
-
Factory method used to get a
JsonContent
instance from a source JSON
string.
- getJsonContent(String) - Method in class org.springframework.boot.test.json.JacksonTester
-
- getObject() - Method in class org.springframework.boot.test.json.ObjectContent
-
Return the actual object content.
- getOrder() - Method in class org.springframework.boot.test.mock.mockito.MockitoPostProcessor
-
- getOrder() - Method in class org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener
-
- getOrder() - Method in class org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener
-
- getOrFindConfigurationClasses(MergedContextConfiguration) - Method in class org.springframework.boot.test.context.SpringBootTestContextBootstrapper
-
- getOut() - Method in interface org.springframework.boot.test.system.CapturedOutput
-
Return System.out
content in the order that it was captured.
- getOut() - Method in class org.springframework.boot.test.system.OutputCaptureRule
-
- getPage(String) - Method in class org.springframework.boot.test.web.htmlunit.LocalHostWebClient
-
- getProperties(Class<?>) - Method in class org.springframework.boot.test.context.SpringBootTestContextBootstrapper
-
- getRequestConfig() - Method in class org.springframework.boot.test.web.client.TestRestTemplate.CustomHttpComponentsClientHttpRequestFactory
-
- getResource(String) - Method in class org.springframework.boot.test.context.FilteredClassLoader
-
- getResource(String) - Method in class org.springframework.boot.test.mock.web.SpringBootMockServletContext
-
- getResourceAsStream(String) - Method in class org.springframework.boot.test.context.FilteredClassLoader
-
- getResourceBasePathLocation(String) - Method in class org.springframework.boot.test.mock.web.SpringBootMockServletContext
-
- getResourceLoadClass() - Method in class org.springframework.boot.test.json.AbstractJsonMarshalTester
-
Return class used to load relative resources.
- getResourceLocation(String) - Method in class org.springframework.boot.test.mock.web.SpringBootMockServletContext
-
- getResources(String) - Method in class org.springframework.boot.test.context.FilteredClassLoader
-
- getResourceSuffix() - Method in class org.springframework.boot.test.context.SpringBootContextLoader
-
- getResourceSuffixes() - Method in class org.springframework.boot.test.context.SpringBootContextLoader
-
- getRestTemplate() - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Returns the underlying RestTemplate
that is actually used to perform the
REST operations.
- getRootUri() - Method in class org.springframework.boot.test.web.client.LocalHostUriTemplateHandler
-
- getRootUri() - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Returns the root URI applied by a RootUriTemplateHandler
or ""
if
the root URI is not available.
- getServer() - Method in class org.springframework.boot.test.web.client.MockServerRestTemplateCustomizer
-
- getServer(RestTemplate) - Method in class org.springframework.boot.test.web.client.MockServerRestTemplateCustomizer
-
- getServers() - Method in class org.springframework.boot.test.web.client.MockServerRestTemplateCustomizer
-
- getSourceApplicationContext() - Method in interface org.springframework.boot.test.context.assertj.ApplicationContextAssertProvider
-
Return the original source ApplicationContext
.
- getSourceApplicationContext(Class<T>) - Method in interface org.springframework.boot.test.context.assertj.ApplicationContextAssertProvider
-
Return the original source ApplicationContext
, casting it to the requested
type.
- getSourceClass() - Method in enum org.springframework.boot.test.util.TestPropertyValues.Type
-
- getSpringApplication() - Method in class org.springframework.boot.test.context.SpringBootContextLoader
-
Builds new SpringApplication
instance.
- getStartupFailure() - Method in class org.springframework.boot.test.context.assertj.ApplicationContextAssert
-
- getStartupFailure() - Method in interface org.springframework.boot.test.context.assertj.ApplicationContextAssertProvider
-
Return the failure that caused application context to fail or null
if the
context started without issue.
- getType() - Method in class org.springframework.boot.test.json.AbstractJsonMarshalTester
-
Return the type under test.
- getWebEnvironment(Class<?>) - Method in class org.springframework.boot.test.context.SpringBootTestContextBootstrapper
-
- GsonTester<T> - Class in org.springframework.boot.test.json
-
AssertJ based JSON tester backed by Gson.
- GsonTester(Gson) - Constructor for class org.springframework.boot.test.json.GsonTester
-
- GsonTester(Class<?>, ResolvableType, Gson) - Constructor for class org.springframework.boot.test.json.GsonTester
-
- hasBean(String) - Method in class org.springframework.boot.test.context.assertj.ApplicationContextAssert
-
Verifies that the application context contains a bean with the given name.
- hasEmptyJsonPathValue(CharSequence, Object...) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verify that the actual value at the given JSON path produces an
empty
result.
- hasFailed() - Method in class org.springframework.boot.test.context.assertj.ApplicationContextAssert
-
Verifies that the application has failed to start.
- hasJsonPath(CharSequence, Object...) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verify that the JSON path is present without checking if it has a value.
- hasJsonPathArrayValue(CharSequence, Object...) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verify that the actual value at the given JSON path produces a non-null array
result.
- hasJsonPathBooleanValue(CharSequence, Object...) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verify that the actual value at the given JSON path produces a non-null boolean
result.
- hasJsonPathMapValue(CharSequence, Object...) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verify that the actual value at the given JSON path produces a non-null map result.
- hasJsonPathNumberValue(CharSequence, Object...) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verify that the actual value at the given JSON path produces a non-null number
result.
- hasJsonPathStringValue(CharSequence, Object...) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verify that the actual value at the given JSON path produces a non-null string
result.
- hasJsonPathValue(CharSequence, Object...) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verify that the actual value at the given JSON path produces a non-null result.
- hasNotFailed() - Method in class org.springframework.boot.test.context.assertj.ApplicationContextAssert
-
Verifies that the application has not failed to start.
- hasSingleBean(Class<?>) - Method in class org.springframework.boot.test.context.assertj.ApplicationContextAssert
-
Verifies that the application context (or ancestors) contains a single bean with
the given type.
- hasSingleBean(Class<?>, ApplicationContextAssert.Scope) - Method in class org.springframework.boot.test.context.assertj.ApplicationContextAssert
-
Verifies that the application context contains a single bean with the given type.
- headForHeaders(String, Object...) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Retrieve all headers of the resource specified by the URI template.
- headForHeaders(String, Map<String, ?>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Retrieve all headers of the resource specified by the URI template.
- headForHeaders(URI) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Retrieve all headers of the resource specified by the URL.
- initFields(Object, M) - Method in class org.springframework.boot.test.json.AbstractJsonMarshalTester.FieldInitializer
-
- initFields(Object, ObjectFactory<M>) - Method in class org.springframework.boot.test.json.AbstractJsonMarshalTester.FieldInitializer
-
- initFields(Object, Gson) - Static method in class org.springframework.boot.test.json.GsonTester
-
- initFields(Object, ObjectFactory<Gson>) - Static method in class org.springframework.boot.test.json.GsonTester
-
- initFields(Object, ObjectMapper) - Static method in class org.springframework.boot.test.json.JacksonTester
-
- initFields(Object, ObjectFactory<ObjectMapper>) - Static method in class org.springframework.boot.test.json.JacksonTester
-
- initFields(Object, Jsonb) - Static method in class org.springframework.boot.test.json.JsonbTester
-
- initFields(Object, ObjectFactory<Jsonb>) - Static method in class org.springframework.boot.test.json.JsonbTester
-
- initialize(ConfigurableApplicationContext) - Method in class org.springframework.boot.test.context.ConfigDataApplicationContextInitializer
-
- initialize(ConfigurableApplicationContext) - Method in class org.springframework.boot.test.context.ConfigFileApplicationContextInitializer
-
Deprecated.
- initialize(Class<?>, ResolvableType) - Method in class org.springframework.boot.test.json.AbstractJsonMarshalTester
-
Initialize the marshal tester for use.
- initialize(Class<?>) - Method in class org.springframework.boot.test.json.BasicJsonTester
-
Initialize the marshal tester for use, configuring it to load JSON resources as
UTF-8.
- initialize(Class<?>, Charset) - Method in class org.springframework.boot.test.json.BasicJsonTester
-
Initialize the marshal tester for use.
- isEmbedded() - Method in enum org.springframework.boot.test.context.SpringBootTest.WebEnvironment
-
Return if the environment uses an ServletWebServerApplicationContext
.
- isEqualTo(Object) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Overridden version of isEqualTo
to perform JSON tests based on the object
type.
- isEqualToJson(CharSequence) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is leniently
equal
to the specified JSON.
- isEqualToJson(String, Class<?>) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is leniently
equal
to the specified JSON resource.
- isEqualToJson(byte[]) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is leniently
equal
to the specified JSON bytes.
- isEqualToJson(File) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is leniently
equal
to the specified JSON file.
- isEqualToJson(InputStream) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is leniently
equal
to the specified JSON input stream.
- isEqualToJson(Resource) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is leniently
equal
to the specified JSON resource.
- isEqualToJson(CharSequence, JSONCompareMode) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is equal to the specified JSON.
- isEqualToJson(String, Class<?>, JSONCompareMode) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is equal to the specified JSON resource.
- isEqualToJson(byte[], JSONCompareMode) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is equal to the specified JSON bytes.
- isEqualToJson(File, JSONCompareMode) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is equal to the specified JSON file.
- isEqualToJson(InputStream, JSONCompareMode) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is equal to the specified JSON input stream.
- isEqualToJson(Resource, JSONCompareMode) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is equal to the specified JSON resource.
- isEqualToJson(CharSequence, JSONComparator) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is equal to the specified JSON.
- isEqualToJson(String, Class<?>, JSONComparator) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is equal to the specified JSON resource.
- isEqualToJson(byte[], JSONComparator) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is equal to the specified JSON bytes.
- isEqualToJson(File, JSONComparator) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is equal to the specified JSON file.
- isEqualToJson(InputStream, JSONComparator) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is equal to the specified JSON input stream.
- isEqualToJson(Resource, JSONComparator) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is equal to the specified JSON resource.
- isNotEqualTo(Object) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Overridden version of isNotEqualTo
to perform JSON tests based on the
object type.
- isNotEqualToJson(CharSequence) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not leniently
equal to the specified JSON.
- isNotEqualToJson(String, Class<?>) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not leniently
equal to the specified JSON resource.
- isNotEqualToJson(byte[]) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not leniently
equal to the specified JSON bytes.
- isNotEqualToJson(File) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not leniently
equal to the specified JSON file.
- isNotEqualToJson(InputStream) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not leniently
equal to the specified JSON input stream.
- isNotEqualToJson(Resource) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not leniently
equal to the specified JSON resource.
- isNotEqualToJson(CharSequence, JSONCompareMode) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not equal to the specified JSON.
- isNotEqualToJson(String, Class<?>, JSONCompareMode) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not equal to the specified JSON resource.
- isNotEqualToJson(byte[], JSONCompareMode) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not equal to the specified JSON bytes.
- isNotEqualToJson(File, JSONCompareMode) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not equal to the specified JSON file.
- isNotEqualToJson(InputStream, JSONCompareMode) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not equal to the specified JSON input stream.
- isNotEqualToJson(Resource, JSONCompareMode) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not equal to the specified JSON resource.
- isNotEqualToJson(CharSequence, JSONComparator) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not equal to the specified JSON.
- isNotEqualToJson(String, Class<?>, JSONComparator) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not equal to the specified JSON resource.
- isNotEqualToJson(byte[], JSONComparator) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not equal to the specified JSON bytes.
- isNotEqualToJson(File, JSONComparator) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not equal to the specified JSON file.
- isNotEqualToJson(InputStream, JSONComparator) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not equal to the specified JSON input stream.
- isNotEqualToJson(Resource, JSONComparator) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not equal to the specified JSON resource.
- isNotStrictlyEqualToJson(CharSequence) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not strictly
equal
to the specified JSON.
- isNotStrictlyEqualToJson(String, Class<?>) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not strictly
equal
to the specified JSON resource.
- isNotStrictlyEqualToJson(byte[]) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not strictly
equal
to the specified JSON bytes.
- isNotStrictlyEqualToJson(File) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not strictly
equal
to the specified JSON file.
- isNotStrictlyEqualToJson(InputStream) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not strictly
equal
to the specified JSON input stream.
- isNotStrictlyEqualToJson(Resource) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is not strictly
equal
to the specified JSON resource.
- isStrictlyEqualToJson(CharSequence) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is strictly
equal to
the specified JSON.
- isStrictlyEqualToJson(String, Class<?>) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is strictly
equal to
the specified JSON resource.
- isStrictlyEqualToJson(byte[]) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is strictly
equal to
the specified JSON bytes.
- isStrictlyEqualToJson(File) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is strictly
equal to
the specified JSON file.
- isStrictlyEqualToJson(InputStream) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is strictly
equal to
the specified JSON input stream.
- isStrictlyEqualToJson(Resource) - Method in class org.springframework.boot.test.json.JsonContentAssert
-
Verifies that the actual value is strictly
equal to
the specified JSON resource.
- ObjectContent<T> - Class in org.springframework.boot.test.json
-
- ObjectContent(ResolvableType, T) - Constructor for class org.springframework.boot.test.json.ObjectContent
-
- ObjectContentAssert<A> - Class in org.springframework.boot.test.json
-
- ObjectContentAssert(A) - Constructor for class org.springframework.boot.test.json.ObjectContentAssert
-
- of(Class<?>...) - Static method in class org.springframework.boot.test.context.FilteredClassLoader.ClassFilter
-
- of(ClassPathResource...) - Static method in class org.springframework.boot.test.context.FilteredClassLoader.ClassPathResourceFilter
-
- of(String...) - Static method in class org.springframework.boot.test.context.FilteredClassLoader.PackageFilter
-
- of(String...) - Static method in class org.springframework.boot.test.util.TestPropertyValues
-
Return a new
TestPropertyValues
with the underlying map populated with the
given property pairs.
- of(Iterable<String>) - Static method in class org.springframework.boot.test.util.TestPropertyValues
-
Return a new
TestPropertyValues
with the underlying map populated with the
given property pairs.
- of(Stream<String>) - Static method in class org.springframework.boot.test.util.TestPropertyValues
-
Return a new
TestPropertyValues
with the underlying map populated with the
given property pairs.
- of(Map<String, String>) - Static method in class org.springframework.boot.test.util.TestPropertyValues
-
Return a new
TestPropertyValues
with the underlying map populated with the
given map entries.
- of(Stream<T>, Function<T, TestPropertyValues.Pair>) - Static method in class org.springframework.boot.test.util.TestPropertyValues
-
- of(String, String) - Static method in class org.springframework.boot.test.util.TestPropertyValues.Pair
-
- optionsForAllow(String, Object...) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Return the value of the Allow header for the given URI.
- optionsForAllow(String, Map<String, ?>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Return the value of the Allow header for the given URI.
- optionsForAllow(URI) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Return the value of the Allow header for the given URL.
- org.springframework.boot.test.context - package org.springframework.boot.test.context
-
Classes and annotations related to configuring Spring's ApplicationContext
for
tests.
- org.springframework.boot.test.context.assertj - package org.springframework.boot.test.context.assertj
-
AssertJ support for ApplicationContexts.
- org.springframework.boot.test.context.runner - package org.springframework.boot.test.context.runner
-
Test utilities to run application contexts for testing.
- org.springframework.boot.test.json - package org.springframework.boot.test.json
-
Support for testing JSON.
- org.springframework.boot.test.mock.mockito - package org.springframework.boot.test.mock.mockito
-
Mockito integration for Spring Boot tests.
- org.springframework.boot.test.mock.web - package org.springframework.boot.test.mock.web
-
Mock web classes specific to Spring Boot.
- org.springframework.boot.test.system - package org.springframework.boot.test.system
-
Classes for System
-related testing.
- org.springframework.boot.test.util - package org.springframework.boot.test.util
-
General purpose test utilities.
- org.springframework.boot.test.web.client - package org.springframework.boot.test.web.client
-
Web client test utilities.
- org.springframework.boot.test.web.htmlunit - package org.springframework.boot.test.web.htmlunit
-
HtmlUnit support classes.
- org.springframework.boot.test.web.htmlunit.webdriver - package org.springframework.boot.test.web.htmlunit.webdriver
-
Selenium support classes.
- org.springframework.boot.test.web.reactive.server - package org.springframework.boot.test.web.reactive.server
-
Spring Boot support for testing Spring WebFlux server endpoints via
WebTestClient
.
- OutputCaptureExtension - Class in org.springframework.boot.test.system
-
JUnit Jupiter @Extension
to capture System.out
and
System.err
.
- OutputCaptureRule - Class in org.springframework.boot.test.system
-
JUnit @Rule
to capture output from System.out and System.err.
- OutputCaptureRule() - Constructor for class org.springframework.boot.test.system.OutputCaptureRule
-
- Pair(String, String) - Constructor for class org.springframework.boot.test.util.TestPropertyValues.Pair
-
- parse(byte[]) - Method in class org.springframework.boot.test.json.AbstractJsonMarshalTester
-
- parse(String) - Method in class org.springframework.boot.test.json.AbstractJsonMarshalTester
-
- parse(String) - Static method in class org.springframework.boot.test.util.TestPropertyValues.Pair
-
- parseObject(byte[]) - Method in class org.springframework.boot.test.json.AbstractJsonMarshalTester
-
Return the object created from parsing the specific JSON bytes.
- parseObject(String) - Method in class org.springframework.boot.test.json.AbstractJsonMarshalTester
-
Return the object created from parsing the specific JSON String.
- patchForObject(String, Object, Class<T>, Object...) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Update a resource by PATCHing the given object to the URI template, and returns the
representation found in the response.
- patchForObject(String, Object, Class<T>, Map<String, ?>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Update a resource by PATCHing the given object to the URI template, and returns the
representation found in the response.
- patchForObject(URI, Object, Class<T>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Update a resource by PATCHing the given object to the URL, and returns the
representation found in the response.
- postForEntity(String, Object, Class<T>, Object...) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URI template, and returns
the response as ResponseEntity
.
- postForEntity(String, Object, Class<T>, Map<String, ?>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URI template, and returns
the response as HttpEntity
.
- postForEntity(URI, Object, Class<T>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URL, and returns the
response as ResponseEntity
.
- postForLocation(String, Object, Object...) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URI template, and returns
the value of the Location
header.
- postForLocation(String, Object, Map<String, ?>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URI template, and returns
the value of the Location
header.
- postForLocation(URI, Object) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URL, and returns the value
of the Location
header.
- postForObject(String, Object, Class<T>, Object...) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URI template, and returns
the representation found in the response.
- postForObject(String, Object, Class<T>, Map<String, ?>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URI template, and returns
the representation found in the response.
- postForObject(URI, Object, Class<T>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URL, and returns the
representation found in the response.
- postProcessBeanFactory(ConfigurableListableBeanFactory) - Method in class org.springframework.boot.test.mock.mockito.MockitoPostProcessor
-
- postProcessDefaultTestExecutionListeners(Set<Class<? extends TestExecutionListener>>) - Method in interface org.springframework.boot.test.context.DefaultTestExecutionListenersPostProcessor
-
Post process the list of default TestExecutionListener
classes to be used.
- postProcessProperties(PropertyValues, Object, String) - Method in class org.springframework.boot.test.mock.mockito.MockitoPostProcessor
-
- prepareTestInstance(TestContext) - Method in class org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener
-
- processContextConfiguration(ContextConfigurationAttributes) - Method in class org.springframework.boot.test.context.SpringBootContextLoader
-
- processMergedContextConfiguration(MergedContextConfiguration) - Method in class org.springframework.boot.test.context.SpringBootTestContextBootstrapper
-
- processPropertySourceProperties(MergedContextConfiguration, List<String>) - Method in class org.springframework.boot.test.context.SpringBootTestContextBootstrapper
-
Post process the property source properties, adding or removing elements as
required.
- publicDefineClass(String, byte[], ProtectionDomain) - Method in class org.springframework.boot.test.context.FilteredClassLoader
-
- put(String, Object, Object...) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Create or update a resource by PUTting the given object to the URI.
- put(String, Object, Map<String, ?>) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Creates a new resource by PUTting the given object to URI template.
- put(URI, Object) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Creates a new resource by PUTting the given object to URL.
- WebApplicationContextRunner - Class in org.springframework.boot.test.context.runner
-
- WebApplicationContextRunner() - Constructor for class org.springframework.boot.test.context.runner.WebApplicationContextRunner
-
Create a new
WebApplicationContextRunner
instance using an
AnnotationConfigServletWebApplicationContext
with a
MockServletContext
as the underlying source.
- WebApplicationContextRunner(Supplier<ConfigurableWebApplicationContext>) - Constructor for class org.springframework.boot.test.context.runner.WebApplicationContextRunner
-
- WebTestClientBuilderCustomizer - Interface in org.springframework.boot.test.web.reactive.server
-
A customizer for a WebTestClient.Builder
.
- with(Function<SELF, SELF>) - Method in class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
-
Apply customization to this runner.
- withAllowBeanDefinitionOverriding(boolean) - Method in class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
-
Specify if bean definition overriding, by registering a definition with the same
name as an existing definition, should be allowed.
- withBasicAuth(String, String) - Method in class org.springframework.boot.test.web.client.TestRestTemplate
-
Creates a new TestRestTemplate
with the same configuration as this one,
except that it will send basic authorization headers using the given
username
and password
.
- withBean(Class<T>, Object...) - Method in class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
-
Register the specified user bean with the ApplicationContext
.
- withBean(String, Class<T>, Object...) - Method in class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
-
Register the specified user bean with the ApplicationContext
.
- withBean(Class<T>, Supplier<T>, BeanDefinitionCustomizer...) - Method in class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
-
Register the specified user bean with the ApplicationContext
.
- withBean(String, Class<T>, Supplier<T>, BeanDefinitionCustomizer...) - Method in class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
-
Register the specified user bean with the ApplicationContext
.
- withClassLoader(ClassLoader) - Method in class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
-
Customize the ClassLoader
that the ApplicationContext
should use
for resource loading and bean class loading.
- withConfiguration(Configurations) - Method in class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
-
Register the specified configuration classes with the ApplicationContext
.
- withInitializer(ApplicationContextInitializer<? super C>) - Method in class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
-
Add an ApplicationContextInitializer
to be called when the context is
created.
- withMockServletContext(Supplier<ConfigurableWebApplicationContext>) - Static method in class org.springframework.boot.test.context.runner.WebApplicationContextRunner
-
Decorate the specified contextFactory
to set a MockServletContext
on each newly created WebApplicationContext
.
- withParent(ApplicationContext) - Method in class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
-
Configure the parent
of the ApplicationContext
.
- withPropertyValues(String...) - Method in class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
-
Add the specified Environment
property pairs.
- withSettings(MockReset) - Static method in enum org.springframework.boot.test.mock.mockito.MockReset
-
Create settings
to be used with mocks where a specific reset
should occur.
- withSystemProperties(String...) - Method in class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
-
Add the specified System
property pairs.
- withUserConfiguration(Class<?>...) - Method in class org.springframework.boot.test.context.runner.AbstractApplicationContextRunner
-
Register the specified user configuration classes with the
ApplicationContext
.
- write(T) - Method in class org.springframework.boot.test.json.AbstractJsonMarshalTester
-
- writeObject(T, ResolvableType) - Method in class org.springframework.boot.test.json.AbstractJsonMarshalTester
-
Write the specified object to a JSON string.
- writeObject(T, ResolvableType) - Method in class org.springframework.boot.test.json.GsonTester
-
- writeObject(T, ResolvableType) - Method in class org.springframework.boot.test.json.JacksonTester
-
- writeObject(T, ResolvableType) - Method in class org.springframework.boot.test.json.JsonbTester
-