/** * Sets comparison options. * * @param options * @return */ public Configuration withOptions(Options options) { return new Configuration(tolerance, options, ignorePlaceholder, matchers, pathsToBeIgnored, differenceListener); }
/** * Sets numerical comparison tolerance. * * @param tolerance * @return */ public Configuration withTolerance(BigDecimal tolerance) { return new Configuration(tolerance, options, ignorePlaceholder, matchers, pathsToBeIgnored, differenceListener); }
/** * Sets comparison options. * * @param options * @return */ public Configuration withOptions(Options options) { return new Configuration(tolerance, options, ignorePlaceholder, matchers, pathsToBeIgnored, differenceListener); }
/** * Sets ignore placeholder. * * @param ignorePlaceholder * @return */ public Configuration withIgnorePlaceholder(String ignorePlaceholder) { return new Configuration(tolerance, options, ignorePlaceholder, matchers, pathsToBeIgnored, differenceListener); }
/** * Sets difference listener */ public Configuration withDifferenceListener(DifferenceListener differenceListener) { return new Configuration(tolerance, options, ignorePlaceholder, matchers, pathsToBeIgnored, differenceListener); }
/** * Sets numerical comparison tolerance. * * @param tolerance * @return */ public Configuration withTolerance(BigDecimal tolerance) { return new Configuration(tolerance, options, ignorePlaceholder, matchers, pathsToBeIgnored, differenceListener); }
/** * Sets ignore placeholder. * * @param ignorePlaceholder * @return */ public Configuration withIgnorePlaceholder(String ignorePlaceholder) { return new Configuration(tolerance, options, ignorePlaceholder, matchers, pathsToBeIgnored, differenceListener); }
/** * Sets difference listener */ public Configuration withDifferenceListener(DifferenceListener differenceListener) { return new Configuration(tolerance, options, ignorePlaceholder, matchers, pathsToBeIgnored, differenceListener); }
public Configuration whenIgnoringPaths(String... pathsToBeIgnored) { return new Configuration(tolerance, options, ignorePlaceholder, matchers, asList(pathsToBeIgnored), differenceListener); }
public Configuration whenIgnoringPaths(String... pathsToBeIgnored) { return new Configuration(tolerance, options, ignorePlaceholder, matchers, asList(pathsToBeIgnored), differenceListener); }
/** * Adds comparison options. * * @param first * @param next * @return */ public Configuration withOptions(Option first, Option... next) { return new Configuration(tolerance, options.with(first, next), ignorePlaceholder, matchers, pathsToBeIgnored, differenceListener); }
/** * Adds a matcher to be used in ${json-unit.matches:matcherName} macro. * * @param matcherName * @param matcher * @return */ public Configuration withMatcher(String matcherName, Matcher<?> matcher) { return new Configuration(tolerance, options, ignorePlaceholder, matchers.with(matcherName, matcher), pathsToBeIgnored, differenceListener); }
/** * Adds comparison options. * * @param first * @param next * @return */ public Configuration withOptions(Option first, Option... next) { return new Configuration(tolerance, options.with(first, next), ignorePlaceholder, matchers, pathsToBeIgnored, differenceListener); }
/** * Adds a matcher to be used in ${json-unit.matches:matcherName} macro. * * @param matcherName * @param matcher * @return */ public Configuration withMatcher(String matcherName, Matcher<?> matcher) { return new Configuration(tolerance, options, ignorePlaceholder, matchers.with(matcherName, matcher), pathsToBeIgnored, differenceListener); }