Class JsonEvaluator

java.lang.Object
de.hybris.platform.integrationservices.asserts.JsonEvaluator

public class JsonEvaluator extends Object
Evaluates conditions around JsonObject. This class facilitates reuse through composition instead of reuse by inheritance.
  • Method Details

    • instance

      public static JsonEvaluator 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

      public void assertJsonIsEmpty(org.assertj.core.api.WritableAssertionInfo info, JsonObject json)
    • 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)