Uses of Enum Class
org.springframework.test.json.JsonCompareMode
Package
Description
Testing support for JSON.
Contains built-in
RequestMatcher
implementations.Support for testing Spring WebFlux server endpoints via
WebTestClient
.Contains built-in
ResultMatcher
and ResultHandler
implementations.-
Uses of JsonCompareMode in org.springframework.test.json
Modifier and TypeMethodDescriptionstatic JsonCompareMode
Returns the enum constant of this class with the specified name.static JsonCompareMode[]
JsonCompareMode.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic JsonComparator
JsonAssert.comparator
(JsonCompareMode compareMode) Create aJsonComparator
from the givenJsonCompareMode
.AbstractJsonContentAssert.isEqualTo
(CharSequence expected, JsonCompareMode compareMode) Verify that the actual value is equal to the given JSON.AbstractJsonContentAssert.isEqualTo
(Resource expected, JsonCompareMode compareMode) Verify that the actual value is equal to the given JSONResource
.AbstractJsonContentAssert.isNotEqualTo
(CharSequence expected, JsonCompareMode compareMode) Verify that the actual value is not equal to the given JSON.AbstractJsonContentAssert.isNotEqualTo
(Resource expected, JsonCompareMode compareMode) Verify that the actual value is not equal to the given JSONResource
. -
Uses of JsonCompareMode in org.springframework.test.web.client.match
Modifier and TypeMethodDescriptionContentRequestMatchers.json
(String expectedJsonContent, JsonCompareMode compareMode) Parse the request body and the given string as JSON and assert the two using the given mode. -
Uses of JsonCompareMode in org.springframework.test.web.reactive.server
Modifier and TypeMethodDescriptionWebTestClient.BodyContentSpec.json
(String expectedJson, JsonCompareMode compareMode) Parse the expected and actual response content as JSON and perform a comparison using the given mode. -
Uses of JsonCompareMode in org.springframework.test.web.servlet.result
Modifier and TypeMethodDescriptionContentResultMatchers.json
(String jsonContent, JsonCompareMode compareMode) Parse the response content and the given string as JSON and assert the two using the given mode.