net.serenitybdd.junit.finder.DefaultTestFinder 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;
import com.google.common.collect.Lists;
import java.util.List;
/**
* Returns all of the Thucydides classes under the specified package.
*/
public class DefaultTestFinder extends TestFinder {
public DefaultTestFinder(final String rootPackage) {
super(rootPackage);
}
@Override
public List> getClasses() {
return sorted(Lists.newArrayList(getAllTestClasses()));
}
@Override
public int countTestMethods() {
return getAllTestMethods().size();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy