public class JsonPathAssert extends org.assertj.core.api.AbstractAssert<JsonPathAssert,JsonVerifiable>
DocumentContext or JsonVerifiable.
Remember that the order of execution matters since it's building the JSON Path
in the provided sequence.| Constructor and Description |
|---|
JsonPathAssert(com.jayway.jsonpath.DocumentContext actual) |
JsonPathAssert(JsonVerifiable actual) |
| Modifier and Type | Method and Description |
|---|---|
JsonPathAssert |
array() |
JsonPathAssert |
array(Object value) |
JsonPathAssert |
arrayField() |
JsonPathAssert |
contains(Object value) |
JsonPathAssert |
field(Object value) |
JsonPathAssert |
field(String... value) |
JsonPathAssert |
isEmpty() |
JsonPathAssert |
isEqualTo(Boolean value) |
JsonPathAssert |
isEqualTo(Number value) |
JsonPathAssert |
isEqualTo(String value) |
JsonPathAssert |
isInstanceOf(Class clazz) |
void |
isNull() |
JsonPathAssert |
matches(String value) |
JsonPathAssert |
matchesJsonPath(String jsonPath) |
JsonPathAssert |
value() |
asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorpublic JsonPathAssert(com.jayway.jsonpath.DocumentContext actual)
public JsonPathAssert(JsonVerifiable actual)
public JsonPathAssert contains(Object value)
JsonVerifiable.contains(Object)public JsonPathAssert field(Object value)
JsonVerifiable.field(Object)public JsonPathAssert field(String... value)
JsonVerifiable.field(String...)public JsonPathAssert array(Object value)
(Object)public JsonPathAssert arrayField()
JsonVerifiable.arrayField()public JsonPathAssert array()
JsonVerifiable.array()public JsonPathAssert isEqualTo(String value)
JsonVerifiable.isEqualTo(String)public JsonPathAssert isEqualTo(Number value)
JsonVerifiable.isEqualTo(Number)public JsonPathAssert isInstanceOf(Class clazz)
isInstanceOf in interface org.assertj.core.api.Assert<JsonPathAssert,JsonVerifiable>isInstanceOf in class org.assertj.core.api.AbstractAssert<JsonPathAssert,JsonVerifiable>JsonVerifiable.isInstanceOf(Class)public JsonPathAssert matches(String value)
JsonVerifiable.matches(String)public JsonPathAssert isEqualTo(Boolean value)
JsonVerifiable.isEqualTo(Boolean)public JsonPathAssert value()
JsonVerifiable.value()public void isNull()
isNull in interface org.assertj.core.api.Assert<JsonPathAssert,JsonVerifiable>isNull in class org.assertj.core.api.AbstractAssert<JsonPathAssert,JsonVerifiable>JsonVerifiable.isNull()public JsonPathAssert matchesJsonPath(String jsonPath)
JsonVerifiable.matchesJsonPath(String)public JsonPathAssert isEmpty()
JsonVerifiable.isEmpty()Copyright © 2015–2022. All rights reserved.