junit5.TestUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenium-java-toolkit-JUnit5 Show documentation
Show all versions of selenium-java-toolkit-JUnit5 Show documentation
Selenium-Toolkit is a Java based test-toolkit for selenium-testing with testNg.
The goal of the toolkit is, to suport you in different things like 'how to manage testdata in the source', parallelisation, Webdriver-managemet, reporting and a lot more.
package junit5;
import org.junit.platform.launcher.TestIdentifier;
import java.util.Arrays;
import java.util.List;
public class TestUtil {
public static final List webTestIdentifier = Arrays.asList("ST", "Selenium", "SeleniumTest", "Web", "WebTest");
public static boolean isWebTest(TestIdentifier testIdentifier){
return webTestIdentifier.stream().anyMatch(webTestIdentifier -> testIdentifier.getTags().stream().anyMatch(tag -> webTestIdentifier.equalsIgnoreCase(tag.toString())));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy