| Package | Description |
|---|---|
| net.javacrumbs.jsonunit.assertj |
| Modifier and Type | Method and Description |
|---|---|
@NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssert.ConfigurableJsonAssert.as(@NotNull org.assertj.core.description.Description description) |
@NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssert.ConfigurableJsonAssert.as(@NotNull String description,
Object... args) |
static @NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssertions.assertThatJson(@NotNull Object actual) |
static @NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssertions.assertThatJson(@NotNull Object actual,
JsonAssertions.JsonAssertionCallback... callbacks)
Assert json properties with possibility to chain assertion callbacks like this
|
@NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssert.ConfigurableJsonAssert.describedAs(@NotNull org.assertj.core.description.Description description) |
@NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssert.ConfigurableJsonAssert.describedAs(@NotNull String description,
Object... args) |
@NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssert.ConfigurableJsonAssert.when(@NotNull net.javacrumbs.jsonunit.core.ConfigurationWhen.PathsParam object,
net.javacrumbs.jsonunit.core.ConfigurationWhen.ApplicableForPath... actions)
Adds path specific options.
|
@NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssert.ConfigurableJsonAssert.when(@NotNull net.javacrumbs.jsonunit.core.Option first,
net.javacrumbs.jsonunit.core.Option... other)
Adds comparison options.
|
@NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssert.ConfigurableJsonAssert.whenIgnoringPaths(String... pathsToBeIgnored)
Makes JsonUnit ignore the specified paths in the actual value.
|
@NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssert.ConfigurableJsonAssert.withConfiguration(@NotNull Function<net.javacrumbs.jsonunit.core.Configuration,net.javacrumbs.jsonunit.core.Configuration> configurationFunction)
Allows to configure like this
assertThatJson(...)
.withConfiguration(c -> c.withMatcher("positive", greaterThan(valueOf(0)))
.... |
@NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssert.ConfigurableJsonAssert.withDifferenceListener(@NotNull net.javacrumbs.jsonunit.core.listener.DifferenceListener differenceListener)
Sets difference listener
|
@NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssert.ConfigurableJsonAssert.withIgnorePlaceholder(@NotNull String ignorePlaceholder)
Sets ignore placeholder.
|
@NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssert.ConfigurableJsonAssert.withMatcher(@NotNull String matcherName,
@NotNull org.hamcrest.Matcher<?> matcher)
Adds a matcher to be used in ${json-unit.matches:matcherName} macro.
|
@NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssert.ConfigurableJsonAssert.withOptions(@NotNull net.javacrumbs.jsonunit.core.internal.Options options)
Sets comparison options.
|
@NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssert.ConfigurableJsonAssert.withTolerance(@Nullable BigDecimal tolerance)
Sets numerical comparison tolerance.
|
@NotNull JsonAssert.ConfigurableJsonAssert |
JsonAssert.ConfigurableJsonAssert.withTolerance(double tolerance)
Sets numerical comparison tolerance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JsonAssertions.JsonAssertionCallback.doAssert(@NotNull JsonAssert.ConfigurableJsonAssert assertion) |
Copyright © 2020. All rights reserved.