Uses of Class
org.springframework.test.json.JsonContentAssert
Packages that use JsonContentAssert
Package
Description
Testing support for JSON.
AssertJ support for MockMvc.
-
Uses of JsonContentAssert in org.springframework.test.json
Methods in org.springframework.test.json that return JsonContentAssertModifier and TypeMethodDescriptionJsonContent.assertThat()
Use AssertJ'sassertThat
instead.JsonContentAssert.isEqualTo
(CharSequence expected, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verify that the actual value is equal to the given JSON.JsonContentAssert.isEqualTo
(CharSequence expected, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verify that the actual value is equal to the given JSON.JsonContentAssert.isEqualTo
(Resource expected, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verify that the actual value is equal to the given JSONResource
.JsonContentAssert.isEqualTo
(Resource expected, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verify that the actual value is equal to the given JSONResource
.JsonContentAssert.isLenientlyEqualTo
(CharSequence expected) Verify that the actual value isleniently
equal to the given JSON.JsonContentAssert.isLenientlyEqualTo
(Resource expected) Verify that the actual value isleniently
equal to the given JSONResource
.JsonContentAssert.isNotEqualTo
(CharSequence expected, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verify that the actual value is not equal to the given JSON.JsonContentAssert.isNotEqualTo
(CharSequence expected, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verify that the actual value is not equal to the given JSON.JsonContentAssert.isNotEqualTo
(Resource expected, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verify that the actual value is not equal to the given JSONResource
.JsonContentAssert.isNotEqualTo
(Resource expected, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verify that the actual value is not equal to the given JSONResource
.JsonContentAssert.isNotLenientlyEqualTo
(CharSequence expected) Verify that the actual value is notleniently
equal to the given JSON.JsonContentAssert.isNotLenientlyEqualTo
(Resource expected) Verify that the actual value is notleniently
equal to the given JSONResource
.JsonContentAssert.isNotStrictlyEqualTo
(CharSequence expected) Verify that the actual value is notstrictly
equal to the given JSON.JsonContentAssert.isNotStrictlyEqualTo
(Resource expected) Verify that the actual value is notstrictly
equal to the given JSONResource
.JsonContentAssert.isStrictlyEqualTo
(CharSequence expected) Verify that the actual value isstrictly
equal to the given JSON.JsonContentAssert.isStrictlyEqualTo
(Resource expected) Verify that the actual value isstrictly
equal to the given JSONResource
. -
Uses of JsonContentAssert in org.springframework.test.web.servlet.assertj
Methods in org.springframework.test.web.servlet.assertj that return JsonContentAssertModifier and TypeMethodDescriptionResponseBodyAssert.json()
Return a new assertion object that provides support for JSON assert comparisons against expected JSON input which can be loaded from the classpath.Return a new assertion object that provides support for JSON assert comparisons against expected JSON input which can be loaded from the classpath.