Package com.shaft.validation
Class JSONValidationsBuilder
java.lang.Object
com.shaft.validation.NativeValidationsBuilder
com.shaft.validation.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.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
-