Uses of Class
org.springframework.boot.test.json.JsonContentAssert
Packages that use JsonContentAssert
-
Uses of JsonContentAssert in org.springframework.boot.test.json
Methods in org.springframework.boot.test.json that return JsonContentAssertModifier and TypeMethodDescriptionJsonContent.assertThat()Deprecated.to prevent accidental use.JsonContentAssert.doesNotHaveEmptyJsonPathValue(CharSequence expression, Object... args) Verify that the actual value at the given JSON path does not produce anemptyresult.JsonContentAssert.doesNotHaveJsonPath(CharSequence expression, Object... args) Verify that the JSON path is not present, even if it has anullvalue.JsonContentAssert.doesNotHaveJsonPathValue(CharSequence expression, Object... args) Verify that the actual value at the given JSON path produces no result.JsonContentAssert.hasEmptyJsonPathValue(CharSequence expression, Object... args) Verify that the actual value at the given JSON path produces anemptyresult.JsonContentAssert.hasJsonPath(CharSequence expression, Object... args) Verify that the JSON path is present without checking if it has a value.JsonContentAssert.hasJsonPathArrayValue(CharSequence expression, Object... args) Verify that the actual value at the given JSON path produces a non-null array result.JsonContentAssert.hasJsonPathBooleanValue(CharSequence expression, Object... args) Verify that the actual value at the given JSON path produces a non-null boolean result.JsonContentAssert.hasJsonPathMapValue(CharSequence expression, Object... args) Verify that the actual value at the given JSON path produces a non-null map result.JsonContentAssert.hasJsonPathNumberValue(CharSequence expression, Object... args) Verify that the actual value at the given JSON path produces a non-null number result.JsonContentAssert.hasJsonPathStringValue(CharSequence expression, Object... args) Verify that the actual value at the given JSON path produces a non-null string result.JsonContentAssert.hasJsonPathValue(CharSequence expression, Object... args) Verify that the actual value at the given JSON path produces a non-null result.Overridden version ofisEqualToto perform JSON tests based on the object type.JsonContentAssert.isEqualToJson(byte[] expected) Verifies that the actual value islenientlyequal to the specified JSON bytes.JsonContentAssert.isEqualToJson(byte[] expected, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verifies that the actual value is equal to the specified JSON bytes.JsonContentAssert.isEqualToJson(byte[] expected, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verifies that the actual value is equal to the specified JSON bytes.JsonContentAssert.isEqualToJson(File expected) Verifies that the actual value islenientlyequal to the specified JSON file.JsonContentAssert.isEqualToJson(File expected, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verifies that the actual value is equal to the specified JSON file.JsonContentAssert.isEqualToJson(File expected, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verifies that the actual value is equal to the specified JSON file.JsonContentAssert.isEqualToJson(InputStream expected) Verifies that the actual value islenientlyequal to the specified JSON input stream.JsonContentAssert.isEqualToJson(InputStream expected, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verifies that the actual value is equal to the specified JSON input stream.JsonContentAssert.isEqualToJson(InputStream expected, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verifies that the actual value is equal to the specified JSON input stream.JsonContentAssert.isEqualToJson(CharSequence expected) Verifies that the actual value islenientlyequal to the specified JSON.JsonContentAssert.isEqualToJson(CharSequence expected, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verifies that the actual value is equal to the specified JSON.JsonContentAssert.isEqualToJson(CharSequence expected, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verifies that the actual value is equal to the specified JSON.JsonContentAssert.isEqualToJson(String path, Class<?> resourceLoadClass) Verifies that the actual value islenientlyequal to the specified JSON resource.JsonContentAssert.isEqualToJson(String path, Class<?> resourceLoadClass, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verifies that the actual value is equal to the specified JSON resource.JsonContentAssert.isEqualToJson(String path, Class<?> resourceLoadClass, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verifies that the actual value is equal to the specified JSON resource.JsonContentAssert.isEqualToJson(Resource expected) Verifies that the actual value islenientlyequal to the specified JSON resource.JsonContentAssert.isEqualToJson(Resource expected, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verifies that the actual value is equal to the specified JSON resource.JsonContentAssert.isEqualToJson(Resource expected, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verifies that the actual value is equal to the specified JSON resource.JsonContentAssert.isNotEqualTo(Object expected) Overridden version ofisNotEqualToto perform JSON tests based on the object type.JsonContentAssert.isNotEqualToJson(byte[] expected) Verifies that the actual value is notlenientlyequal to the specified JSON bytes.JsonContentAssert.isNotEqualToJson(byte[] expected, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verifies that the actual value is not equal to the specified JSON bytes.JsonContentAssert.isNotEqualToJson(byte[] expected, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verifies that the actual value is not equal to the specified JSON bytes.JsonContentAssert.isNotEqualToJson(File expected) Verifies that the actual value is notlenientlyequal to the specified JSON file.JsonContentAssert.isNotEqualToJson(File expected, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verifies that the actual value is not equal to the specified JSON file.JsonContentAssert.isNotEqualToJson(File expected, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verifies that the actual value is not equal to the specified JSON file.JsonContentAssert.isNotEqualToJson(InputStream expected) Verifies that the actual value is notlenientlyequal to the specified JSON input stream.JsonContentAssert.isNotEqualToJson(InputStream expected, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verifies that the actual value is not equal to the specified JSON input stream.JsonContentAssert.isNotEqualToJson(InputStream expected, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verifies that the actual value is not equal to the specified JSON input stream.JsonContentAssert.isNotEqualToJson(CharSequence expected) Verifies that the actual value is notlenientlyequal to the specified JSON.JsonContentAssert.isNotEqualToJson(CharSequence expected, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verifies that the actual value is not equal to the specified JSON.JsonContentAssert.isNotEqualToJson(CharSequence expected, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verifies that the actual value is not equal to the specified JSON.JsonContentAssert.isNotEqualToJson(String path, Class<?> resourceLoadClass) Verifies that the actual value is notlenientlyequal to the specified JSON resource.JsonContentAssert.isNotEqualToJson(String path, Class<?> resourceLoadClass, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verifies that the actual value is not equal to the specified JSON resource.JsonContentAssert.isNotEqualToJson(String path, Class<?> resourceLoadClass, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verifies that the actual value is not equal to the specified JSON resource.JsonContentAssert.isNotEqualToJson(Resource expected) Verifies that the actual value is notlenientlyequal to the specified JSON resource.JsonContentAssert.isNotEqualToJson(Resource expected, org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Verifies that the actual value is not equal to the specified JSON resource.JsonContentAssert.isNotEqualToJson(Resource expected, org.skyscreamer.jsonassert.JSONCompareMode compareMode) Verifies that the actual value is not equal to the specified JSON resource.JsonContentAssert.isNotStrictlyEqualToJson(byte[] expected) Verifies that the actual value is notstrictlyequal to the specified JSON bytes.JsonContentAssert.isNotStrictlyEqualToJson(File expected) Verifies that the actual value is notstrictlyequal to the specified JSON file.JsonContentAssert.isNotStrictlyEqualToJson(InputStream expected) Verifies that the actual value is notstrictlyequal to the specified JSON input stream.JsonContentAssert.isNotStrictlyEqualToJson(CharSequence expected) Verifies that the actual value is notstrictlyequal to the specified JSON.JsonContentAssert.isNotStrictlyEqualToJson(String path, Class<?> resourceLoadClass) Verifies that the actual value is notstrictlyequal to the specified JSON resource.JsonContentAssert.isNotStrictlyEqualToJson(Resource expected) Verifies that the actual value is notstrictlyequal to the specified JSON resource.JsonContentAssert.isStrictlyEqualToJson(byte[] expected) Verifies that the actual value isstrictlyequal to the specified JSON bytes.JsonContentAssert.isStrictlyEqualToJson(File expected) Verifies that the actual value isstrictlyequal to the specified JSON file.JsonContentAssert.isStrictlyEqualToJson(InputStream expected) Verifies that the actual value isstrictlyequal to the specified JSON input stream.JsonContentAssert.isStrictlyEqualToJson(CharSequence expected) Verifies that the actual value isstrictlyequal to the specified JSON.JsonContentAssert.isStrictlyEqualToJson(String path, Class<?> resourceLoadClass) Verifies that the actual value isstrictlyequal to the specified JSON resource.JsonContentAssert.isStrictlyEqualToJson(Resource expected) Verifies that the actual value isstrictlyequal to the specified JSON resource.