- EnvironmentTestUtils - Class in org.springframework.boot.test.util
-
Test utilities for setting environment values.
- EnvironmentTestUtils() - Constructor for class org.springframework.boot.test.util.EnvironmentTestUtils
-
- 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.rule.OutputCapture
-
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.
- 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
-
- initialize(ConfigurableApplicationContext) - Method in class org.springframework.boot.test.context.ConfigFileApplicationContextInitializer
-
- initialize(Class<?>, ResolvableType) - Method in class org.springframework.boot.test.json.AbstractJsonMarshalTester
-
Initialize the marshal tester for use.
- initialize(Class<?>, ResolvableType) - 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, ResolvableType) - 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
-
- 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.
- parse(byte[]) - Method in class org.springframework.boot.test.json.AbstractJsonMarshalTester
-
- parse(String) - Method in class org.springframework.boot.test.json.AbstractJsonMarshalTester
-
- 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.
- postProcessPropertyValues(PropertyValues, PropertyDescriptor[], 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.
- 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.