Class SHAFT.Validations
java.lang.Object
com.shaft.driver.SHAFT.Validations
- Enclosing class:
SHAFT
Provides standalone assertion and verification builders for use outside
of a WebDriver context (e.g., API response validation, object comparison).
Usage example:
SHAFT.Validations.assertThat().object(actualValue).isEqualTo(expectedValue).perform();
SHAFT.Validations.verifyThat().number(count).isGreaterThan(0).perform();
-
Method Summary
Modifier and TypeMethodDescriptionStarts building a hard assertion.Starts building a soft verification.
-
Method Details
-
assertThat
Starts building a hard assertion. The test fails immediately if the assertion does not pass.- Returns:
- a
WizardHelpers.StandaloneAssertionsbuilder
-
verifyThat
Starts building a soft verification. Failures are collected and reported at the end of the test without stopping execution.- Returns:
- a
WizardHelpers.StandaloneVerificationsbuilder
-