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

com.epam.jdi.light.asserts.generic.CommonAssert Maven / Gradle / Ivy

There is a newer version: 1.6.0
Show newest version
package com.epam.jdi.light.asserts.generic;

import com.epam.jdi.light.asserts.core.SoftAssert;
import com.epam.jdi.tools.func.JFunc1;

/**
 * Created by Roman Iovlev on 26.09.2019
 * Email: [email protected]; Skype: roman.iovlev
 */
public interface CommonAssert {
    A displayed();
    A disappear();
    A hidden();
    A notAppear();
    A notAppear(int timeoutSec);
    A enabled();
    A disabled();

    default A and() { return (A) this; }
    default A condition(JFunc1 t) {
        return t.execute((A) this);
    }

    default void assertResults() {
        SoftAssert.assertResults();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy