Class NativeValidationsBuilder
java.lang.Object
com.shaft.validation.internal.NativeValidationsBuilder
- Direct Known Subclasses:
JSONValidationsBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionNativeValidationsBuilder(FileValidationsBuilder fileValidationsBuilder) NativeValidationsBuilder(RestValidationsBuilder restValidationsBuilder) NativeValidationsBuilder(ValidationsBuilder validationsBuilder) NativeValidationsBuilder(WebDriverBrowserValidationsBuilder webDriverBrowserValidationsBuilder) NativeValidationsBuilder(WebDriverElementValidationsBuilder webDriverElementValidationsBuilder) -
Method Summary
Modifier and TypeMethodDescriptionUse this under text assertions to validate text alignment as LTR/RTL.Use this to check that the actual object contains the expected valueUse this under text assertions to validate text direction as LTR/RTL.Use this under text assertions to validate text display style as LTR/RTL.doesNotContain(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 expressionbooleanOverrides 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)isArabic()Convenience method that validates Arabic text characters and RTL direction.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 truelanguage()Use this under text assertions to validate text language.matchesRegex(Object expectedValue) Use this to check that the actual object matches the expected regular expressionUse this under text assertions to validate text orientation as LTR/RTL.
-
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
-
language
Use this under text assertions to validate text language.- Returns:
- a TextLanguageValidationsBuilder object to continue building language validations
- Throws:
IllegalStateException- if called outside text-based assertions
-
direction
Use this under text assertions to validate text direction as LTR/RTL.- Returns:
- a TextDirectionValidationsBuilder object to continue building direction validations
- Throws:
IllegalStateException- if called outside text-based assertions
-
alignment
Use this under text assertions to validate text alignment as LTR/RTL.- Returns:
- a TextDirectionValidationsBuilder object to continue building alignment validations
- Throws:
IllegalStateException- if called outside text-based assertions
-
orientation
Use this under text assertions to validate text orientation as LTR/RTL.- Returns:
- a TextDirectionValidationsBuilder object to continue building orientation validations
- Throws:
IllegalStateException- if called outside text-based assertions
-
displayStyle
Use this under text assertions to validate text display style as LTR/RTL.- Returns:
- a TextDirectionValidationsBuilder object to continue building display style validations
- Throws:
IllegalStateException- if called outside text-based assertions
-
isArabic
Convenience method that validates Arabic text characters and RTL direction.- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
- Throws:
IllegalStateException- if called outside text-based assertions
-