Package | Description |
---|---|
org.springframework.boot.test.json |
Support for testing JSON.
|
Modifier and Type | Method and Description |
---|---|
JsonContentAssert |
JsonContent.assertThat() |
JsonContentAssert |
JsonContentAssert.doesNotHaveEmptyJsonPathValue(CharSequence expression,
Object... args)
Verify that the actual value at the given JSON path does not produce an
empty result. |
JsonContentAssert |
JsonContentAssert.doesNotHaveJsonPathValue(CharSequence expression,
Object... args)
Verify that the actual value at the given JSON path produces no result.
|
JsonContentAssert |
JsonContentAssert.hasEmptyJsonPathValue(CharSequence expression,
Object... args)
Verify that the actual value at the given JSON path produces an
empty result. |
JsonContentAssert |
JsonContentAssert.hasJsonPathArrayValue(CharSequence expression,
Object... args)
Verify that the actual value at the given JSON path produces a non-null array
result.
|
JsonContentAssert |
JsonContentAssert.hasJsonPathBooleanValue(CharSequence expression,
Object... args)
Verify that the actual value at the given JSON path produces a non-null boolean
result.
|
JsonContentAssert |
JsonContentAssert.hasJsonPathMapValue(CharSequence expression,
Object... args)
Verify that the actual value at the given JSON path produces a non-null map result.
|
JsonContentAssert |
JsonContentAssert.hasJsonPathNumberValue(CharSequence expression,
Object... args)
Verify that the actual value at the given JSON path produces a non-null number
result.
|
JsonContentAssert |
JsonContentAssert.hasJsonPathStringValue(CharSequence expression,
Object... args)
Verify that the actual value at the given JSON path produces a non-null string
result.
|
JsonContentAssert |
JsonContentAssert.hasJsonPathValue(CharSequence expression,
Object... args)
Verify that the actual value at the given JSON path produces a non-null result.
|
JsonContentAssert |
JsonContentAssert.isEqualTo(Object expected)
Overridden version of
isEqualTo to perform JSON tests based on the object
type. |
JsonContentAssert |
JsonContentAssert.isEqualToJson(byte[] expected)
Verifies that the actual value is
leniently equal
to the specified JSON bytes. |
JsonContentAssert |
JsonContentAssert.isEqualToJson(byte[] expected,
org.skyscreamer.jsonassert.comparator.JSONComparator comparator)
Verifies that the actual value is equal to the specified JSON bytes.
|
JsonContentAssert |
JsonContentAssert.isEqualToJson(byte[] expected,
org.skyscreamer.jsonassert.JSONCompareMode compareMode)
Verifies that the actual value is equal to the specified JSON bytes.
|
JsonContentAssert |
JsonContentAssert.isEqualToJson(CharSequence expected)
Verifies that the actual value is
leniently equal
to the specified JSON. |
JsonContentAssert |
JsonContentAssert.isEqualToJson(CharSequence expected,
org.skyscreamer.jsonassert.comparator.JSONComparator comparator)
Verifies that the actual value is equal to the specified JSON.
|
JsonContentAssert |
JsonContentAssert.isEqualToJson(CharSequence expected,
org.skyscreamer.jsonassert.JSONCompareMode compareMode)
Verifies that the actual value is equal to the specified JSON.
|
JsonContentAssert |
JsonContentAssert.isEqualToJson(File expected)
Verifies that the actual value is
leniently equal
to the specified JSON file. |
JsonContentAssert |
JsonContentAssert.isEqualToJson(File expected,
org.skyscreamer.jsonassert.comparator.JSONComparator comparator)
Verifies that the actual value is equal to the specified JSON file.
|
JsonContentAssert |
JsonContentAssert.isEqualToJson(File expected,
org.skyscreamer.jsonassert.JSONCompareMode compareMode)
Verifies that the actual value is equal to the specified JSON file.
|
JsonContentAssert |
JsonContentAssert.isEqualToJson(InputStream expected)
Verifies that the actual value is
leniently equal
to the specified JSON input stream. |
JsonContentAssert |
JsonContentAssert.isEqualToJson(InputStream expected,
org.skyscreamer.jsonassert.comparator.JSONComparator comparator)
Verifies that the actual value is equal to the specified JSON input stream.
|
JsonContentAssert |
JsonContentAssert.isEqualToJson(InputStream expected,
org.skyscreamer.jsonassert.JSONCompareMode compareMode)
Verifies that the actual value is equal to the specified JSON input stream.
|
JsonContentAssert |
JsonContentAssert.isEqualToJson(Resource expected)
Verifies that the actual value is
leniently equal
to the specified JSON resource. |
JsonContentAssert |
JsonContentAssert.isEqualToJson(Resource expected,
org.skyscreamer.jsonassert.comparator.JSONComparator comparator)
Verifies that the actual value is equal to the specified JSON resource.
|
JsonContentAssert |
JsonContentAssert.isEqualToJson(Resource expected,
org.skyscreamer.jsonassert.JSONCompareMode compareMode)
Verifies that the actual value is equal to the specified JSON resource.
|
JsonContentAssert |
JsonContentAssert.isEqualToJson(String path,
Class<?> resourceLoadClass)
Verifies that the actual value is
leniently equal
to the specified JSON resource. |
JsonContentAssert |
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 |
JsonContentAssert.isEqualToJson(String path,
Class<?> resourceLoadClass,
org.skyscreamer.jsonassert.JSONCompareMode compareMode)
Verifies that the actual value is equal to the specified JSON resource.
|
JsonContentAssert |
JsonContentAssert.isNotEqualTo(Object expected)
Overridden version of
isNotEqualTo to perform JSON tests based on the
object type. |
JsonContentAssert |
JsonContentAssert.isNotEqualToJson(byte[] expected)
Verifies that the actual value is not
leniently
equal to the specified JSON bytes. |
JsonContentAssert |
JsonContentAssert.isNotEqualToJson(byte[] expected,
org.skyscreamer.jsonassert.comparator.JSONComparator comparator)
Verifies that the actual value is not equal to the specified JSON bytes.
|
JsonContentAssert |
JsonContentAssert.isNotEqualToJson(byte[] expected,
org.skyscreamer.jsonassert.JSONCompareMode compareMode)
Verifies that the actual value is not equal to the specified JSON bytes.
|
JsonContentAssert |
JsonContentAssert.isNotEqualToJson(CharSequence expected)
Verifies that the actual value is not
leniently
equal to the specified JSON. |
JsonContentAssert |
JsonContentAssert.isNotEqualToJson(CharSequence expected,
org.skyscreamer.jsonassert.comparator.JSONComparator comparator)
Verifies that the actual value is not equal to the specified JSON.
|
JsonContentAssert |
JsonContentAssert.isNotEqualToJson(CharSequence expected,
org.skyscreamer.jsonassert.JSONCompareMode compareMode)
Verifies that the actual value is not equal to the specified JSON.
|
JsonContentAssert |
JsonContentAssert.isNotEqualToJson(File expected)
Verifies that the actual value is not
leniently
equal to the specified JSON file. |
JsonContentAssert |
JsonContentAssert.isNotEqualToJson(File expected,
org.skyscreamer.jsonassert.comparator.JSONComparator comparator)
Verifies that the actual value is not equal to the specified JSON file.
|
JsonContentAssert |
JsonContentAssert.isNotEqualToJson(File expected,
org.skyscreamer.jsonassert.JSONCompareMode compareMode)
Verifies that the actual value is not equal to the specified JSON file.
|
JsonContentAssert |
JsonContentAssert.isNotEqualToJson(InputStream expected)
Verifies that the actual value is not
leniently
equal to the specified JSON input stream. |
JsonContentAssert |
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 |
JsonContentAssert.isNotEqualToJson(InputStream expected,
org.skyscreamer.jsonassert.JSONCompareMode compareMode)
Verifies that the actual value is not equal to the specified JSON input stream.
|
JsonContentAssert |
JsonContentAssert.isNotEqualToJson(Resource expected)
Verifies that the actual value is not
leniently
equal to the specified JSON resource. |
JsonContentAssert |
JsonContentAssert.isNotEqualToJson(Resource expected,
org.skyscreamer.jsonassert.comparator.JSONComparator comparator)
Verifies that the actual value is not equal to the specified JSON resource.
|
JsonContentAssert |
JsonContentAssert.isNotEqualToJson(Resource expected,
org.skyscreamer.jsonassert.JSONCompareMode compareMode)
Verifies that the actual value is not equal to the specified JSON resource.
|
JsonContentAssert |
JsonContentAssert.isNotEqualToJson(String path,
Class<?> resourceLoadClass)
Verifies that the actual value is not
leniently
equal to the specified JSON resource. |
JsonContentAssert |
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 |
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 |
JsonContentAssert.isNotStrictlyEqualToJson(byte[] expected)
Verifies that the actual value is not
strictly equal
to the specified JSON bytes. |
JsonContentAssert |
JsonContentAssert.isNotStrictlyEqualToJson(CharSequence expected)
Verifies that the actual value is not
strictly equal
to the specified JSON. |
JsonContentAssert |
JsonContentAssert.isNotStrictlyEqualToJson(File expected)
Verifies that the actual value is not
strictly equal
to the specified JSON file. |
JsonContentAssert |
JsonContentAssert.isNotStrictlyEqualToJson(InputStream expected)
Verifies that the actual value is not
strictly equal
to the specified JSON input stream. |
JsonContentAssert |
JsonContentAssert.isNotStrictlyEqualToJson(Resource expected)
Verifies that the actual value is not
strictly equal
to the specified JSON resource. |
JsonContentAssert |
JsonContentAssert.isNotStrictlyEqualToJson(String path,
Class<?> resourceLoadClass)
Verifies that the actual value is not
strictly equal
to the specified JSON resource. |
JsonContentAssert |
JsonContentAssert.isStrictlyEqualToJson(byte[] expected)
Verifies that the actual value is
strictly equal to
the specified JSON bytes. |
JsonContentAssert |
JsonContentAssert.isStrictlyEqualToJson(CharSequence expected)
Verifies that the actual value is
strictly equal to
the specified JSON. |
JsonContentAssert |
JsonContentAssert.isStrictlyEqualToJson(File expected)
Verifies that the actual value is
strictly equal to
the specified JSON file. |
JsonContentAssert |
JsonContentAssert.isStrictlyEqualToJson(InputStream expected)
Verifies that the actual value is
strictly equal to
the specified JSON input stream. |
JsonContentAssert |
JsonContentAssert.isStrictlyEqualToJson(Resource expected)
Verifies that the actual value is
strictly equal to
the specified JSON resource. |
JsonContentAssert |
JsonContentAssert.isStrictlyEqualToJson(String path,
Class<?> resourceLoadClass)
Verifies that the actual value is
strictly equal to
the specified JSON resource. |
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.