Package com.shaft.validation
Class NumberValidationsBuilder
java.lang.Object
com.shaft.validation.NumberValidationsBuilder
-
Constructor Summary
ConstructorDescriptionNumberValidationsBuilder
(RestValidationsBuilder restValidationsBuilder) NumberValidationsBuilder
(ValidationsBuilder validationsBuilder) -
Method Summary
Modifier and TypeMethodDescriptiondoesNotEqual
(Number expectedValue) Use this to check that the actual number does not equal the expected valueboolean
Overrides the default object method equals and is the same as calling isEqualTo((Number) expectedValue).perform();Use this to check that the actual number is equal to the expected valueisGreaterThan
(Number expectedValue) Use this to check that the actual number is greater than the expected valueisGreaterThanOrEquals
(Number expectedValue) Use this to check that the actual number is greater than or equal to the expected valueisLessThan
(Number expectedValue) Use this to check that the actual number is less than the expected valueisLessThanOrEquals
(Number expectedValue) Use this to check that the actual number is less than or equal to the expected value
-
Constructor Details
-
NumberValidationsBuilder
-
NumberValidationsBuilder
-
-
Method Details
-
isEqualTo
Use this to check that the actual number is equal to the expected value- Parameters:
expectedValue
- the test data / expected value for the number under test- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
-
equals
Overrides the default object method equals and is the same as calling isEqualTo((Number) expectedValue).perform(); -
doesNotEqual
Use this to check that the actual number does not equal the expected value- Parameters:
expectedValue
- the test data / expected value for the number under test- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
-
isGreaterThanOrEquals
Use this to check that the actual number is greater than or equal to the expected value- Parameters:
expectedValue
- the test data / expected value for the number under test- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
-
isGreaterThan
Use this to check that the actual number is greater than the expected value- Parameters:
expectedValue
- the test data / expected value for the number under test- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
-
isLessThanOrEquals
Use this to check that the actual number is less than or equal to the expected value- Parameters:
expectedValue
- the test data / expected value for the number under test- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
-
isLessThan
Use this to check that the actual number is less than the expected value- Parameters:
expectedValue
- the test data / expected value for the number under test- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
-