Class JsonErrors
java.lang.Object
de.hybris.platform.integrationservices.asserts.JsonErrors
- All Implemented Interfaces:
org.assertj.core.error.AssertionErrorFactory
A message factory for errors related to JSON content.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.assertj.core.error.AssertionErrorFactorynewAssertionError(org.assertj.core.description.Description d, org.assertj.core.presentation.Representation r) static org.assertj.core.error.AssertionErrorFactorypathShouldContainEmptyCollections(JsonObject json, String path, Collection<?> content) static org.assertj.core.error.AssertionErrorFactorypathShouldContainNumberOfElements(JsonObject json, String path, int actual, int expected) static org.assertj.core.error.AssertionErrorFactorypathShouldExist(JsonObject json, String path) static org.assertj.core.error.AssertionErrorFactorypathShouldHaveMatchingElements(JsonObject json, String path, com.jayway.jsonpath.Filter filter) static org.assertj.core.error.AssertionErrorFactorypathShouldHaveValue(JsonObject json, String path, String actual, String expected) static org.assertj.core.error.AssertionErrorFactorypathShouldNotExist(JsonObject json, String path)
-
Method Details
-
pathShouldHaveValue
public static org.assertj.core.error.AssertionErrorFactory pathShouldHaveValue(JsonObject json, String path, String actual, String expected) -
contentShouldBeEmpty
-
pathShouldContainEmptyCollections
public static org.assertj.core.error.AssertionErrorFactory pathShouldContainEmptyCollections(JsonObject json, String path, Collection<?> content) -
pathShouldExist
public static org.assertj.core.error.AssertionErrorFactory pathShouldExist(JsonObject json, String path) -
pathShouldNotExist
public static org.assertj.core.error.AssertionErrorFactory pathShouldNotExist(JsonObject json, String path) -
pathShouldContainNumberOfElements
public static org.assertj.core.error.AssertionErrorFactory pathShouldContainNumberOfElements(JsonObject json, String path, int actual, int expected) -
pathShouldHaveMatchingElements
public static org.assertj.core.error.AssertionErrorFactory pathShouldHaveMatchingElements(JsonObject json, String path, com.jayway.jsonpath.Filter filter) -
newAssertionError
public AssertionError newAssertionError(org.assertj.core.description.Description d, org.assertj.core.presentation.Representation r) - Specified by:
newAssertionErrorin interfaceorg.assertj.core.error.AssertionErrorFactory
-