Package com.shaft.validation.internal
Class JSONValidationsBuilder
java.lang.Object
com.shaft.validation.internal.NativeValidationsBuilder
com.shaft.validation.internal.JSONValidationsBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoesNotEqualIgnoringOrder
(Object expectedValue) Use this to check that the actual json response is not equal to the expected json value (ignoring ordering)equalsIgnoringOrder
(Object expectedValue) Use this to check that the actual json response is equal to the expected json value (ignoring ordering)Methods inherited from class com.shaft.validation.internal.NativeValidationsBuilder
contains, doesNotContain, doesNotEqual, doesNotEqualIgnoringCaseSensitivity, doesNotMatchRegex, equals, equalsIgnoringCaseSensitivity, isEqualTo, isFalse, isNotNull, isNull, isTrue, matchesRegex
-
Constructor Details
-
JSONValidationsBuilder
-
-
Method Details
-
equalsIgnoringOrder
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
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
-