com.shaft.validation.Validations Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SHAFT_ENGINE Show documentation
Show all versions of SHAFT_ENGINE Show documentation
SHAFT is a unified test automation engine. Powered by best-in-class frameworks, SHAFT provides a
wizard-like syntax to drive your automation efficiently, maximize your ROI, and minimize your learning curve.
Stop reinventing the wheel. Upgrade now!
package com.shaft.validation;
import com.shaft.validation.internal.ValidationsBuilder;
public class Validations {
private Validations() {
throw new IllegalStateException("Utility class");
}
/**
* Start building your assertion (Note: if an assertion fails the test method execution will stop and fail)
*
* @return a ValidationsBuilder Object to start building your validation
*/
public static ValidationsBuilder assertThat() {
return new ValidationsBuilder(ValidationEnums.ValidationCategory.HARD_ASSERT);
}
/**
* Start building your verification (Note: if a verification fails the test method execution will continue normally and all failures will be reported at the end)
*
* @return a ValidationsBuilder Object to start building your validation
*/
public static ValidationsBuilder verifyThat() {
return new ValidationsBuilder(ValidationEnums.ValidationCategory.SOFT_ASSERT);
}
}