Class JsonEvaluator
java.lang.Object
de.hybris.platform.integrationservices.asserts.JsonEvaluator
Evaluates conditions around
JsonObject. This class facilitates reuse through
composition instead of reuse by inheritance.-
Method Summary
Modifier and TypeMethodDescriptionvoidassertJsonArrayPathContains(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, String path, com.jayway.jsonpath.Filter filter) voidassertJsonArraySize(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, String path, int numExpectedEntries) voidassertJsonHasMatchingPath(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, String path) voidassertJsonHasNoMatchingPath(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, String path) voidassertJsonIsEmpty(org.assertj.core.api.WritableAssertionInfo info, JsonObject json) assertJsonPathContains(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, String path, String expected) voidassertJsonPathContainsElementsExactly(JsonObject json, String path, List<Object> expected) assertJsonPathContainsEmptyCollection(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, String path) voidassertJsonPathContainsValueLike(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, String path, String expected) static JsonEvaluatorinstance()
-
Method Details
-
instance
-
assertJsonPathContains
public Object assertJsonPathContains(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, String path, String expected) -
assertJsonPathContainsValueLike
public void assertJsonPathContainsValueLike(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, String path, String expected) -
assertJsonArrayPathContains
public void assertJsonArrayPathContains(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, String path, com.jayway.jsonpath.Filter filter) -
assertJsonArraySize
public void assertJsonArraySize(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, String path, int numExpectedEntries) -
assertJsonHasMatchingPath
public void assertJsonHasMatchingPath(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, String path) -
assertJsonHasNoMatchingPath
public void assertJsonHasNoMatchingPath(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, String path) -
assertJsonIsEmpty
-
assertJsonPathContainsEmptyCollection
public Object assertJsonPathContainsEmptyCollection(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, String path) -
assertJsonPathContainsElementsExactly
public void assertJsonPathContainsElementsExactly(JsonObject json, String path, List<Object> expected)
-