JsonAssert.ConfigurableJsonAssertpublic class JsonAssert extends org.assertj.core.api.AbstractAssert<JsonAssert,Object>
| Modifier and Type | Class | Description |
|---|---|---|
static class |
JsonAssert.ConfigurableJsonAssert |
JsonAssert that can be configured to prevent mistakes like
assertThatJson(...).isEqualsTo(...).when(...);
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
isAbsent() |
Asserts that given node is absent.
|
org.assertj.core.api.ListAssert<Object> |
isArray() |
Asserts that given node is present and is of type array.
|
org.assertj.core.api.BooleanAssert |
isBoolean() |
Asserts that given node is present and is of type boolean.
|
JsonAssert |
isEqualTo(Object expected) |
Compares JSONs.
|
JsonAssert |
isNotNull() |
Asserts that given node is present and is not null.
|
void |
isNull() |
Asserts that given node is present and is null.
|
org.assertj.core.api.BigDecimalAssert |
isNumber() |
Asserts that given node is present and is of type number.
|
org.assertj.core.api.MapAssert<String,Object> |
isObject() |
Asserts that given node is present and is of type object.
|
JsonAssert |
isPresent() |
Asserts that given node is present.
|
org.assertj.core.api.StringAssert |
isString() |
Asserts that given node is present and is of type string.
|
JsonAssert |
node(String node) |
Moves comparison to given node.
|
as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotOfAnyClassIn, isNotSameAs, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, satisfies, setCustomRepresentation, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnErrorpublic JsonAssert node(String node)
public JsonAssert isEqualTo(Object expected)
isEqualTo in class org.assertj.core.api.AbstractAssert<JsonAssert,Object>public org.assertj.core.api.MapAssert<String,Object> isObject()
public org.assertj.core.api.BigDecimalAssert isNumber()
public org.assertj.core.api.ListAssert<Object> isArray()
public org.assertj.core.api.BooleanAssert isBoolean()
public org.assertj.core.api.StringAssert isString()
public void isNull()
isNull in class org.assertj.core.api.AbstractAssert<JsonAssert,Object>public JsonAssert isPresent()
public void isAbsent()
public JsonAssert isNotNull()
isNotNull in class org.assertj.core.api.AbstractAssert<JsonAssert,Object>Copyright © 2018. All rights reserved.