Package com.shaft.validation.internal
Class NativeValidationsBuilder
java.lang.Object
com.shaft.validation.internal.NativeValidationsBuilder
- Direct Known Subclasses:
JSONValidationsBuilder
-
Constructor Summary
ConstructorDescriptionNativeValidationsBuilder
(FileValidationsBuilder fileValidationsBuilder) NativeValidationsBuilder
(RestValidationsBuilder restValidationsBuilder) NativeValidationsBuilder
(ValidationsBuilder validationsBuilder) NativeValidationsBuilder
(WebDriverBrowserValidationsBuilder webDriverBrowserValidationsBuilder) NativeValidationsBuilder
(WebDriverElementValidationsBuilder webDriverElementValidationsBuilder) -
Method Summary
Modifier and TypeMethodDescriptionUse this to check that the actual object contains the expected valuedoesNotContain
(Object expectedValue) Use this to check that the actual object does not contain the expected valuedoesNotEqual
(Object expectedValue) Use this to check that the actual object is not equal to the expected valuedoesNotEqualIgnoringCaseSensitivity
(Object expectedValue) Use this to check that the actual object is not equal to the expected value (ignoring case sensitivity)doesNotMatchRegex
(Object expectedValue) Use this to check that the actual object does not match the expected regular expressionboolean
Overrides the default object method equals and is the same as calling isEqualTo(expectedValue).perform();equalsIgnoringCaseSensitivity
(Object expectedValue) Use this to check that the actual object is equal to the expected value (ignoring case sensitivity)Use this to check that the actual object is equal to the expected valueisFalse()
Use this to check that the actual object is falseUse this to check that the actual object is not nullisNull()
Use this to check that the actual object is nullisTrue()
Use this to check that the actual object is truematchesRegex
(Object expectedValue) Use this to check that the actual object matches the expected regular expression
-
Constructor Details
-
NativeValidationsBuilder
public NativeValidationsBuilder(WebDriverElementValidationsBuilder webDriverElementValidationsBuilder) -
NativeValidationsBuilder
public NativeValidationsBuilder(WebDriverBrowserValidationsBuilder webDriverBrowserValidationsBuilder) -
NativeValidationsBuilder
-
NativeValidationsBuilder
-
NativeValidationsBuilder
-
-
Method Details
-
isEqualTo
Use this to check that the actual object is equal to the expected value- 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
-
equals
Overrides the default object method equals and is the same as calling isEqualTo(expectedValue).perform(); -
doesNotEqual
Use this to check that the actual object is not equal to the expected value- 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
-
contains
Use this to check that the actual object contains the expected value- 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
-
doesNotContain
Use this to check that the actual object does not contain the expected value- 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
-
matchesRegex
Use this to check that the actual object matches the expected regular expression- Parameters:
expectedValue
- the test data / expected regular expression for the object under test- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
-
doesNotMatchRegex
Use this to check that the actual object does not match the expected regular expression- Parameters:
expectedValue
- the test data / expected regular expression for the object under test- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
-
equalsIgnoringCaseSensitivity
Use this to check that the actual object is equal to the expected value (ignoring case sensitivity)- 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
-
doesNotEqualIgnoringCaseSensitivity
Use this to check that the actual object is not equal to the expected value (ignoring case sensitivity)- 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
-
isNull
Use this to check that the actual object is null- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
-
isNotNull
Use this to check that the actual object is not null- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
-
isTrue
Use this to check that the actual object is true- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
-
isFalse
Use this to check that the actual object is false- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
-