public Matchers with(String matcherName, Matcher<?> matcher) { Map<String, Matcher<?>> newMatcherMap = new HashMap<>(matcherMap); newMatcherMap.put(matcherName, matcher); return new Matchers(newMatcherMap); }
public Matcher<?> getMatcher(String matcherName) { return matchers.getMatcher(matcherName); }
/** * 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); }
@Deprecated public Configuration(BigDecimal tolerance, Options options, String ignorePlaceholder) { this(tolerance, options, ignorePlaceholder, Matchers.empty(), Collections.emptySet(), DUMMY_LISTENER); }
/** * 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); }
@Deprecated public Configuration(BigDecimal tolerance, Options options, String ignorePlaceholder) { this(tolerance, options, ignorePlaceholder, Matchers.empty(), Collections.emptySet(), DUMMY_LISTENER); }
public Matchers with(String matcherName, Matcher<?> matcher) { Map<String, Matcher<?>> newMatcherMap = new HashMap<>(matcherMap); newMatcherMap.put(matcherName, matcher); return new Matchers(newMatcherMap); }
public Matcher<?> getMatcher(String matcherName) { return matchers.getMatcher(matcherName); }