Uses of Class
net.javacrumbs.jsonunit.fluent.JsonFluentAssert
-
Uses of JsonFluentAssert in net.javacrumbs.jsonunit.fluent
Subclasses of JsonFluentAssert in net.javacrumbs.jsonunit.fluentModifier and TypeClassDescriptionstatic classJsonFluentAssert that can be configured.Methods in net.javacrumbs.jsonunit.fluent that return JsonFluentAssertModifier and TypeMethodDescriptionJsonFluentAssert.hasSameStructureAs(Object expected) Deprecated.Use IGNORING_VALUES option insteadJsonFluentAssert.isAbsent()Fails if the node exists.Compares JSON for equality.JsonFluentAssert.isNotEqualTo(Object expected) Fails if compared documents are equal.JsonFluentAssert.isPresent()Fails if the node is missing.JsonFluentAssert.isStringEqualTo(String expected) Fails if the selected JSON is not a String or is not present or the value is not equal to expected value.JsonFluentAssert.matches(org.hamcrest.Matcher<?> matcher) Matches the node using Hamcrest internalMatcher.Creates an assert object that only compares given node.