public static class JsonFluentAssert.ConfigurableJsonFluentAssert extends JsonFluentAssert
JsonFluentAssert.ArrayAssert, JsonFluentAssert.ConfigurableJsonFluentAssert| Modifier and Type | Method and Description |
|---|---|
JsonFluentAssert.ConfigurableJsonFluentAssert |
as(String description)
Sets the description of this object.
|
JsonFluentAssert.ConfigurableJsonFluentAssert |
describedAs(String description)
Sets the description of this object.
|
JsonFluentAssert.ConfigurableJsonFluentAssert |
ignoring(String ignorePlaceholder)
Sets the placeholder that can be used to ignore values.
|
JsonFluentAssert.ConfigurableJsonFluentAssert |
node(String newPath)
Creates an assert object that only compares given node.
|
JsonFluentAssert.ConfigurableJsonFluentAssert |
when(net.javacrumbs.jsonunit.core.Option firstOption,
net.javacrumbs.jsonunit.core.Option... otherOptions)
Sets options changing comparison behavior.
|
JsonFluentAssert.ConfigurableJsonFluentAssert |
whenIgnoringPaths(String... pathsToBeIgnored)
Makes JsonUnit ignore the specified paths in the actual value.
|
JsonFluentAssert.ConfigurableJsonFluentAssert |
withDifferenceListener(net.javacrumbs.jsonunit.core.listener.DifferenceListener differenceListener) |
JsonFluentAssert.ConfigurableJsonFluentAssert |
withMatcher(String matcherName,
org.hamcrest.Matcher<?> matcher)
Adds a internalMatcher to be used in ${json-unit.matches:matcherName} macro.
|
JsonFluentAssert.ConfigurableJsonFluentAssert |
withTolerance(BigDecimal tolerance)
Sets the tolerance for floating number comparison.
|
JsonFluentAssert.ConfigurableJsonFluentAssert |
withTolerance(double tolerance)
Sets the tolerance for floating number comparison.
|
assertThatJson, hasSameStructureAs, isAbsent, isArray, isEqualTo, isNotEqualTo, isObject, isPresent, isString, isStringEqualTo, matchespublic JsonFluentAssert.ConfigurableJsonFluentAssert node(String newPath)
assertThatJson("{\"root\":{\"test\":[1,2,3]}}").node("root.test[0]").isEqualTo("1");
node in class JsonFluentAssertnewPath - public JsonFluentAssert.ConfigurableJsonFluentAssert whenIgnoringPaths(String... pathsToBeIgnored)
public JsonFluentAssert.ConfigurableJsonFluentAssert as(String description)
description - public JsonFluentAssert.ConfigurableJsonFluentAssert describedAs(String description)
description - public JsonFluentAssert.ConfigurableJsonFluentAssert ignoring(String ignorePlaceholder)
ignorePlaceholder - public JsonFluentAssert.ConfigurableJsonFluentAssert withTolerance(double tolerance)
tolerance - public JsonFluentAssert.ConfigurableJsonFluentAssert withTolerance(BigDecimal tolerance)
tolerance - public JsonFluentAssert.ConfigurableJsonFluentAssert withMatcher(String matcherName, org.hamcrest.Matcher<?> matcher)
public JsonFluentAssert.ConfigurableJsonFluentAssert withDifferenceListener(net.javacrumbs.jsonunit.core.listener.DifferenceListener differenceListener)
public JsonFluentAssert.ConfigurableJsonFluentAssert when(net.javacrumbs.jsonunit.core.Option firstOption, net.javacrumbs.jsonunit.core.Option... otherOptions)
OptionfirstOption - otherOptions - OptionCopyright © 2019. All rights reserved.