Uses of Class
net.javacrumbs.jsonunit.assertj.JsonAssert.ConfigurableJsonAssert
Packages that use JsonAssert.ConfigurableJsonAssert
-
Uses of JsonAssert.ConfigurableJsonAssert in net.javacrumbs.jsonunit.assertj
Fields in net.javacrumbs.jsonunit.assertj with type parameters of type JsonAssert.ConfigurableJsonAssertModifier and TypeFieldDescriptionstatic final org.assertj.core.api.InstanceOfAssertFactory<Object, JsonAssert.ConfigurableJsonAssert> JsonAssertions.JSONAllows to move from standard AssertJ asserts to JsonUnit.Methods in net.javacrumbs.jsonunit.assertj that return JsonAssert.ConfigurableJsonAssertModifier and TypeMethodDescriptionJsonAssert.ConfigurableJsonAssert.as(org.assertj.core.description.Description description) JsonAssertions.assertThatJson(@Nullable Object actual) JsonAssertions.assertThatJson(Object actual, JsonAssertions.JsonAssertionCallback... callbacks) Assert json properties with possibility to chain assertion callbacks like thisJsonAssert.ConfigurableJsonAssert.describedAs(String description, Object... args) JsonAssert.ConfigurableJsonAssert.describedAs(org.assertj.core.description.Description description) JsonAssert.ConfigurableJsonAssert.when(net.javacrumbs.jsonunit.core.ConfigurationWhen.PathsParam object, net.javacrumbs.jsonunit.core.ConfigurationWhen.ApplicableForPath... actions) Adds path specific options.JsonAssert.ConfigurableJsonAssert.when(net.javacrumbs.jsonunit.core.Option first, net.javacrumbs.jsonunit.core.Option... other) Adds comparison options.JsonAssert.ConfigurableJsonAssert.whenIgnoringPaths(String... pathsToBeIgnored) Makes JsonUnit ignore the specified paths in the actual value.JsonAssert.ConfigurableJsonAssert.withConfiguration(Function<net.javacrumbs.jsonunit.core.Configuration, net.javacrumbs.jsonunit.core.Configuration> configurationFunction) Allows to configure like thisassertThatJson(...) .withConfiguration(c -> c.withMatcher("positive", greaterThan(valueOf(0))) ....JsonAssert.ConfigurableJsonAssert.withDifferenceListener(net.javacrumbs.jsonunit.core.listener.DifferenceListener differenceListener) Sets difference listenerJsonAssert.ConfigurableJsonAssert.withIgnorePlaceholder(String ignorePlaceholder) Sets ignore placeholder.JsonAssert.ConfigurableJsonAssert.withMatcher(String matcherName, org.hamcrest.Matcher<?> matcher) Adds a matcher to be used in ${json-unit.matches:matcherName} macro.JsonAssert.ConfigurableJsonAssert.withOptions(Collection<net.javacrumbs.jsonunit.core.Option> optionsToAdd) Adds comparison options.JsonAssert.ConfigurableJsonAssert.withOptions(net.javacrumbs.jsonunit.core.Option first, net.javacrumbs.jsonunit.core.Option... next) Adds comparison options.JsonAssert.ConfigurableJsonAssert.withTolerance(double tolerance) Sets numerical comparison tolerance.JsonAssert.ConfigurableJsonAssert.withTolerance(@Nullable BigDecimal tolerance) Sets numerical comparison tolerance.Methods in net.javacrumbs.jsonunit.assertj that return types with arguments of type JsonAssert.ConfigurableJsonAssertModifier and TypeMethodDescriptionstatic org.assertj.core.api.AssertFactory<Object, JsonAssert.ConfigurableJsonAssert> JsonAssertions.jsonUnitJson()Returns AssertFactory allowing to move from standard AssertJ to JsonUnit.Methods in net.javacrumbs.jsonunit.assertj with parameters of type JsonAssert.ConfigurableJsonAssertModifier and TypeMethodDescriptionvoidJsonAssertions.JsonAssertionCallback.doAssert(JsonAssert.ConfigurableJsonAssert assertion)