
net.serenitybdd.junit.finder.TestFinderBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serenity-junit Show documentation
Show all versions of serenity-junit Show documentation
Serenity JUnit integration
package net.serenitybdd.junit.finder;
public class TestFinderBuilder {
public static TestFinderBuilder on(FinderType finderType) {
return new TestFinderBuilder(finderType);
}
private final FinderType finderType;
protected TestFinderBuilder(FinderType finderType) {
this.finderType = finderType;
}
public TestFinder inPackage(final String rootPackage) {
switch (finderType) {
case NORMAL_TESTS : return new NormalTestFinder(rootPackage);
case DATA_DRIVEN_TESTS : return new DataDrivenTestFinder(rootPackage);
default: return new DefaultTestFinder(rootPackage);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy