java.lang.Object
uk.org.webcompere.modelassert.json.condition.Not
All Implemented Interfaces:
Condition

public class Not extends Object implements Condition
Inverts a condition. Create using the not(Condition) factory method
  • Method Details

    • not

      public static Not not(Condition condition)
    • test

      public Result test(com.fasterxml.jackson.databind.JsonNode json)
      Execute the test of the condition
      Specified by:
      test in interface Condition
      Parameters:
      json - the json to test
      Returns:
      a Result explaining whether the condition was met and if not, why not
    • describe

      public String describe()
      Describe the condition
      Specified by:
      describe in interface Condition
      Returns:
      description of the condition