Uses of Class
net.javacrumbs.jsonunit.assertj.JsonAssert
| Package | Description |
|---|---|
| net.javacrumbs.jsonunit.assertj |
-
Uses of JsonAssert in net.javacrumbs.jsonunit.assertj
Subclasses of JsonAssert in net.javacrumbs.jsonunit.assertj Modifier and Type Class Description static classJsonAssert.ConfigurableJsonAssertJsonAssert that can be configured to prevent mistakes likeassertThatJson(...).isEqualsTo(...).when(...);Methods in net.javacrumbs.jsonunit.assertj that return JsonAssert Modifier and Type Method Description @NotNull JsonAssertJsonAssert. and(@NotNull JsonAssertion... assertions)Allows to do multiple comparisons on a document likeassertThatJson("{\"test\":{\"a\":1, \"b\":2, \"c\":3}}").and( a -> a.node("test").isObject(), a -> a.node("test.b").isEqualTo(3) );@NotNull JsonAssertJsonAssert.ConfigurableJsonAssert. inPath(@NotNull String jsonPath)@NotNull JsonAssertJsonAssert. isEqualTo(@Nullable Object expected)Compares JSONs.@NotNull JsonAssertJsonAssert. isNotNull()Asserts that given node is present and is not null.@NotNull JsonAssertJsonAssert. isPresent()Asserts that given node is present.@NotNull JsonAssertJsonAssert. node(@NotNull String node)Moves comparison to given node.Methods in net.javacrumbs.jsonunit.assertj with parameters of type JsonAssert Modifier and Type Method Description voidJsonAssertion. doAssert(@NotNull JsonAssert root)