java.lang.Object
de.hybris.platform.integrationservices.asserts.JsonErrors
All Implemented Interfaces:
org.assertj.core.error.AssertionErrorFactory

public class JsonErrors extends Object implements org.assertj.core.error.AssertionErrorFactory
A message factory for errors related to JSON content.
  • Method Details

    • pathShouldHaveValue

      public static org.assertj.core.error.AssertionErrorFactory pathShouldHaveValue(JsonObject json, String path, String actual, String expected)
    • contentShouldBeEmpty

      public static org.assertj.core.error.AssertionErrorFactory contentShouldBeEmpty(JsonObject json)
    • 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:
      newAssertionError in interface org.assertj.core.error.AssertionErrorFactory