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