public class Configuration
extends java.lang.Object
| Constructor and Description |
|---|
Configuration(java.math.BigDecimal tolerance,
Options options,
java.lang.String ignorePlaceholder)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Configuration |
empty()
Returns an empty configuration.
|
java.lang.String |
getIgnorePlaceholder() |
org.hamcrest.Matcher<?> |
getMatcher(java.lang.String matcherName) |
Options |
getOptions() |
java.util.Set<java.lang.String> |
getPathsToBeIgnored() |
java.math.BigDecimal |
getTolerance() |
Configuration |
when(Option first,
Option... next)
Adds comparison options.
|
Configuration |
whenIgnoringPaths(java.lang.String... pathsToBeIgnored) |
Configuration |
withIgnorePlaceholder(java.lang.String ignorePlaceholder)
Sets ignore placeholder.
|
Configuration |
withMatcher(java.lang.String matcherName,
org.hamcrest.Matcher<?> matcher)
Adds a matcher to be used in ${json-unit.matches:matcherName} macro.
|
Configuration |
withOptions(Option first,
Option... next)
Adds comparison options.
|
Configuration |
withOptions(Options options)
Sets comparison options.
|
Configuration |
withTolerance(java.math.BigDecimal tolerance)
Sets numerical comparison tolerance.
|
Configuration |
withTolerance(double tolerance)
Sets numerical comparison tolerance.
|
@Deprecated
public Configuration(java.math.BigDecimal tolerance,
Options options,
java.lang.String ignorePlaceholder)
public static Configuration empty()
public Configuration withTolerance(java.math.BigDecimal tolerance)
tolerance - public Configuration withTolerance(double tolerance)
tolerance - public Configuration when(Option first, Option... next)
first - next - public Configuration withOptions(Option first, Option... next)
first - next - public Configuration withOptions(Options options)
options - public Configuration whenIgnoringPaths(java.lang.String... pathsToBeIgnored)
public Configuration withIgnorePlaceholder(java.lang.String ignorePlaceholder)
ignorePlaceholder - public Configuration withMatcher(java.lang.String matcherName, org.hamcrest.Matcher<?> matcher)
matcherName - matcher - public org.hamcrest.Matcher<?> getMatcher(java.lang.String matcherName)
public java.math.BigDecimal getTolerance()
public Options getOptions()
public java.lang.String getIgnorePlaceholder()
public java.util.Set<java.lang.String> getPathsToBeIgnored()
Copyright © 2017. All Rights Reserved.