Class JsonErrors

  • All Implemented Interfaces:
    org.assertj.core.error.AssertionErrorFactory

    public class JsonErrors
    extends java.lang.Object
    implements org.assertj.core.error.AssertionErrorFactory
    A message factory for errors related to JSON content.
    • 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:
        newAssertionError in interface org.assertj.core.error.AssertionErrorFactory