Class JsonEvaluator
- java.lang.Object
-
- de.hybris.platform.integrationservices.asserts.JsonEvaluator
-
public class JsonEvaluator extends java.lang.ObjectEvaluates conditions aroundJsonObject. This class facilitates reuse through composition instead of reuse by inheritance.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertJsonArrayPathContains(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, java.lang.String path, com.jayway.jsonpath.Filter filter)voidassertJsonArraySize(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, java.lang.String path, int numExpectedEntries)voidassertJsonHasMatchingPath(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, java.lang.String path)voidassertJsonHasNoMatchingPath(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, java.lang.String path)voidassertJsonIsEmpty(org.assertj.core.api.WritableAssertionInfo info, JsonObject json)java.lang.ObjectassertJsonPathContains(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, java.lang.String path, java.lang.String expected)voidassertJsonPathContainsElementsExactly(JsonObject json, java.lang.String path, java.util.List<java.lang.Object> expected)java.lang.ObjectassertJsonPathContainsEmptyCollection(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, java.lang.String path)voidassertJsonPathContainsValueLike(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, java.lang.String path, java.lang.String expected)static JsonEvaluatorinstance()
-
-
-
Method Detail
-
instance
public static JsonEvaluator instance()
-
assertJsonPathContains
public java.lang.Object assertJsonPathContains(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, java.lang.String path, java.lang.String expected)
-
assertJsonPathContainsValueLike
public void assertJsonPathContainsValueLike(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, java.lang.String path, java.lang.String expected)
-
assertJsonArrayPathContains
public void assertJsonArrayPathContains(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, java.lang.String path, com.jayway.jsonpath.Filter filter)
-
assertJsonArraySize
public void assertJsonArraySize(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, java.lang.String path, int numExpectedEntries)
-
assertJsonHasMatchingPath
public void assertJsonHasMatchingPath(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, java.lang.String path)
-
assertJsonHasNoMatchingPath
public void assertJsonHasNoMatchingPath(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, java.lang.String path)
-
assertJsonIsEmpty
public void assertJsonIsEmpty(org.assertj.core.api.WritableAssertionInfo info, JsonObject json)
-
assertJsonPathContainsEmptyCollection
public java.lang.Object assertJsonPathContainsEmptyCollection(org.assertj.core.api.WritableAssertionInfo info, JsonObject json, java.lang.String path)
-
assertJsonPathContainsElementsExactly
public void assertJsonPathContainsElementsExactly(JsonObject json, java.lang.String path, java.util.List<java.lang.Object> expected)
-
-