/** * Creates empty configuration and sets numerical comparison tolerance. */ public static Configuration withTolerance(double tolerance) { return Configuration.empty().withTolerance(tolerance); }
/** * Creates JsonUnitResultMatchers to be used for JSON assertions. * * @return */ public static JsonUnitResultMatchers json() { return new JsonUnitResultMatchers("", Configuration.empty()); }
/** * Adds a matcher to be used in ${json-unit.matches:matcherName} macro. */ public static Configuration withMatcher(String matcherName, Matcher<?> matcher) { return Configuration.empty().withMatcher(matcherName, matcher); }
/** * Sets paths to be ignored. */ public static Configuration whenIgnoringPaths(String... paths) { return Configuration.empty().whenIgnoringPaths(paths); }
/** * Creates empty configuration and sets options. */ public static Configuration when(Option first, Option... next) { return Configuration.empty().withOptions(first, next); }
/** * Sets paths to be ignored. */ public static Configuration whenIgnoringPaths(String... paths) { return Configuration.empty().whenIgnoringPaths(paths); }
/** * Creates empty configuration and sets numerical comparison tolerance. */ public static Configuration withTolerance(BigDecimal tolerance) { return Configuration.empty().withTolerance(tolerance); }
/** * Sets DifferenceListener. */ public static Configuration withDifferenceListener(DifferenceListener differenceListener) { return Configuration.empty().withDifferenceListener(differenceListener); } }
/** * Creates empty configuration and sets options. */ public static Configuration when(Option first, Option... next) { return Configuration.empty().withOptions(first, next); }
/** * Sets DifferenceListener. */ public static Configuration withDifferenceListener(DifferenceListener differenceListener) { return Configuration.empty().withDifferenceListener(differenceListener); } }
/** * Creates empty configuration and sets numerical comparison tolerance. */ public static Configuration withTolerance(double tolerance) { return Configuration.empty().withTolerance(tolerance); }
/** * Creates empty configuration and sets numerical comparison tolerance. */ public static Configuration withTolerance(BigDecimal tolerance) { return Configuration.empty().withTolerance(tolerance); }
/** * Adds a matcher to be used in ${json-unit.matches:matcherName} macro. */ public static Configuration withMatcher(String matcherName, Matcher<?> matcher) { return Configuration.empty().withMatcher(matcherName, matcher); }
private JsonFluentAssert(Object actual, String pathPrefix) { this(actual, Path.create("", pathPrefix), "", Configuration.empty()); }
public static ConfigurableJsonAssert assertThatJson(Object actual) { return new ConfigurableJsonAssert(actual, Configuration.empty()); }
private JsonFluentAssert(Object actual, String pathPrefix) { this(actual, Path.create("", pathPrefix), "", Configuration.empty()); }