Uses of Enum Class
org.springframework.test.json.JsonCompareMode
Packages that use 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
Methods in org.springframework.test.json that return JsonCompareModeModifier and TypeMethodDescriptionstatic JsonCompareModeReturns 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.Methods in org.springframework.test.json with parameters of type JsonCompareModeModifier and TypeMethodDescriptionstatic JsonComparatorJsonAssert.comparator(JsonCompareMode compareMode) Create aJsonComparatorfrom 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
Methods in org.springframework.test.web.client.match with parameters of type JsonCompareModeModifier 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
Methods in org.springframework.test.web.reactive.server with parameters of type JsonCompareModeModifier 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
Methods in org.springframework.test.web.servlet.result with parameters of type JsonCompareModeModifier 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.