| Package | Description |
|---|---|
| net.javacrumbs.jsonunit.assertj |
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonAssert.ConfigurableJsonAssert
JsonAssert that can be configured to prevent mistakes like
assertThatJson(...).isEqualsTo(...).when(...);
|
| Modifier and Type | Method and Description |
|---|---|
JsonAssert |
JsonAssert.and(JsonAssertion... assertions)
Allows to do multiple comparisons on a document like
assertThatJson("{\"test\":{\"a\":1, \"b\":2, \"c\":3}}").and(
a -> a.node("test").isObject(),
a -> a.node("test.b").isEqualTo(3)
);
|
JsonAssert |
JsonAssert.ConfigurableJsonAssert.inPath(String jsonPath) |
JsonAssert |
JsonAssert.isEqualTo(Object expected)
Compares JSONs.
|
JsonAssert |
JsonAssert.isNotNull()
Asserts that given node is present and is not null.
|
JsonAssert |
JsonAssert.isPresent()
Asserts that given node is present.
|
JsonAssert |
JsonAssert.node(String node)
Moves comparison to given node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JsonAssertion.doAssert(JsonAssert root) |
Copyright © 2019. All rights reserved.