How to use DefaultTestFinder class of net.serenitybdd.junit.finder package

Best Serenity JUnit code snippet using net.serenitybdd.junit.finder.DefaultTestFinder

Run Serenity JUnit automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

1package net.serenitybdd.junit.finder;
3import net.serenitybdd.core.collect.NewList;
5import java.util.ArrayList;
6import java.util.List;
9 * Returns all of the Thucydides classes under the specified package.
10 */
11public class DefaultTestFinder extends TestFinder {
12    public DefaultTestFinder(final String rootPackage) {
13        super(rootPackage);
14    }
16    @Override
17    public List<Class<?>> getClasses() {
18        return sorted(new ArrayList(getAllTestClasses()));
19    }
21    @Override
22    public int countTestMethods() {
23        return getAllTestMethods().size();
24    }
Full Screen

Accelerate Your Automation Test Cycles With LambdaTest

Leverage LambdaTest’s cloud-based platform to execute your automation tests in parallel and trim down your test execution time significantly. Your first 100 automation testing minutes are on us.

Try LambdaTest

...Most popular Stackoverflow questions on DefaultTestFinder

    No relevant questions found for this class 😞

Most used methods in DefaultTestFinder

Run Selenium Automation Tests on LambdaTest Cloud Grid

Trigger Selenium automation tests on a cloud-based Grid of 3000+ real browsers and operating systems.

Test now for Free

We use cookies to give you the best experience. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. Learn More in our Cookies policy, Privacy & Terms of service

Allow Cookie

I hope you find the best code examples for your project.

If you want to accelerate automated browser testing, try LambdaTest. Your first 100 automation testing minutes are FREE.

Sarah Elson (Product & Growth Lead)