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