All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.shaft.validation.Validations Maven / Gradle / Ivy

Go to download

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!

There is a newer version: 8.2.20240402
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy