Class JSONValidationsBuilder

java.lang.Object
com.shaft.validation.NativeValidationsBuilder
com.shaft.validation.JSONValidationsBuilder

public class JSONValidationsBuilder extends NativeValidationsBuilder
  • Constructor Details

  • Method Details

    • equalsIgnoringOrder

      public ValidationsExecutor equalsIgnoringOrder(Object expectedValue)
      Use this to check that the actual json response is equal to the expected json value (ignoring ordering)
      Parameters:
      expectedValue - the test data / expected value for the object under test
      Returns:
      a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
    • doesNotEqualIgnoringOrder

      public ValidationsExecutor doesNotEqualIgnoringOrder(Object expectedValue)
      Use this to check that the actual json response is not equal to the expected json value (ignoring ordering)
      Parameters:
      expectedValue - the test data / expected value for the object under test
      Returns:
      a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation