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

com.epam.jdi.light.asserts.generic.ITextAssert 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.common.JDIAction;
import org.hamcrest.Matcher;

import static org.hamcrest.Matchers.is;

/**
 * Created by Roman Iovlev on 26.09.2019
 * Email: [email protected]; Skype: roman.iovlev
 */
public interface ITextAssert {
    @JDIAction("Assert that '{name}' text {0}")
    A text(Matcher condition);
    @JDIAction("Assert that '{name}' text {0}")
    default A text(String text) { return text(is(text)); }
    @JDIAction("Assert that '{name}' value {0}")
    default A value(Matcher condition) {
        return text(condition);
    }
    @JDIAction("Assert that '{name}' value {0}")
    default A value(String condition) {
        return text(condition);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy