Class AbstractJsonPathAssertions<B>
java.lang.Object
org.springframework.test.web.support.AbstractJsonPathAssertions<B>
- Type Parameters:
B
- the type of body spec (RestTestClient vs WebTestClient specific)
- Direct Known Subclasses:
JsonPathAssertions, JsonPathAssertions
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractJsonPathAssertions
(B spec, String content, String expression, @Nullable com.jayway.jsonpath.Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionboolean
exists()
int
hashCode()
isArray()
isEmpty()
isMap()
isNumber()
<T> B
Consume the result of the JSONPath evaluation and provide a target class.<T> B
<T> B
Consume the result of the JSONPath evaluation.<T> B
Delegates toJsonPathExpectationsHelper.assertValue(String, Matcher)
.<T> B
value
(ParameterizedTypeReference<T> targetType, Consumer<T> consumer) Consume the result of the JSONPath evaluation and provide a parameterized type.<T> B
value
(ParameterizedTypeReference<T> targetType, Matcher<? super T> matcher)
-
Constructor Details
-
AbstractJsonPathAssertions
-
-
Method Details
-
isEqualTo
-
exists
-
doesNotExist
-
isEmpty
-
isNotEmpty
-
hasJsonPath
-
doesNotHaveJsonPath
-
isBoolean
-
isNumber
-
isArray
-
isMap
-
value
Delegates toJsonPathExpectationsHelper.assertValue(String, Matcher)
. -
value
-
value
-
value
-
value
-
value
Consume the result of the JSONPath evaluation and provide a parameterized type. -
equals
-
hashCode
-