| Package | Description |
|---|---|
| net.javacrumbs.jsonunit.core | |
| net.javacrumbs.jsonunit.core.internal | |
| net.javacrumbs.jsonunit.core.internal.matchers | |
| net.javacrumbs.jsonunit.core.listener |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Configuration |
ConfigurationWhen.ApplicableForPath.applyForPaths(@NotNull Configuration configuration,
@NotNull ConfigurationWhen.PathsParam pathsParam) |
static @NotNull Configuration |
Configuration.empty()
Returns an empty configuration.
|
@NotNull Configuration |
Configuration.when(@NotNull ConfigurationWhen.PathsParam object,
ConfigurationWhen.ApplicableForPath... actions)
Defines general comparison options.
|
@NotNull Configuration |
Configuration.when(@NotNull Option first,
Option... next)
Adds comparison options.
|
@NotNull Configuration |
Configuration.whenIgnoringPaths(@NotNull Collection<String> pathsToBeIgnored) |
@NotNull Configuration |
Configuration.whenIgnoringPaths(String... pathsToBeIgnored)
Makes JsonUnit ignore the specified paths in the actual value.
|
@NotNull Configuration |
Configuration.withDifferenceListener(@NotNull DifferenceListener differenceListener)
Sets difference listener
|
@NotNull Configuration |
Configuration.withIgnorePlaceholder(@NotNull String ignorePlaceholder)
Sets ignore placeholder.
|
@NotNull Configuration |
Configuration.withMatcher(@NotNull String matcherName,
@NotNull org.hamcrest.Matcher<?> matcher)
Adds a matcher to be used in ${json-unit.matches:matcherName} macro.
|
@NotNull Configuration |
Configuration.withOptions(@NotNull Option first,
Option... next)
Adds comparison options.
|
@NotNull Configuration |
Configuration.withOptions(@NotNull Options options)
Sets comparison options.
|
@NotNull Configuration |
Configuration.withPathOptions(@NotNull List<PathOption> pathOptions) |
@NotNull Configuration |
Configuration.withTolerance(@Nullable BigDecimal tolerance)
Sets numerical comparison tolerance.
|
@NotNull Configuration |
Configuration.withTolerance(double tolerance)
Sets numerical comparison tolerance.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull Configuration |
ConfigurationWhen.ApplicableForPath.applyForPaths(@NotNull Configuration configuration,
@NotNull ConfigurationWhen.PathsParam pathsParam) |
| Modifier and Type | Method and Description |
|---|---|
static Diff |
Diff.create(Object expected,
Object actual,
String actualName,
Path path,
Configuration configuration) |
static Diff |
Diff.create(Object expected,
Object actual,
String actualName,
String path,
Configuration configuration) |
static Diff |
Diff.createInternal(Object expected,
Object actual,
String actualName,
Path path,
Configuration configuration,
String differenceString) |
static boolean |
JsonUtils.nodeAbsent(Object json,
Path path,
Configuration configuration) |
static boolean |
JsonUtils.nodeAbsent(Object json,
String path,
Configuration configuration) |
| Constructor and Description |
|---|
InternalMatcher(@NotNull Object actual,
@NotNull Path path,
@NotNull String description,
@NotNull Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
DifferenceContext.getConfiguration()
Configuration used for comparison.
|
Copyright © 2020. All rights reserved.