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

net.serenitybdd.junit.finder.DefaultTestFinder Maven / Gradle / Ivy

There is a newer version: 4.2.9
Show newest version
package net.serenitybdd.junit.finder;

import net.serenitybdd.core.collect.NewList;

import java.util.ArrayList;
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(new ArrayList(getAllTestClasses()));
    }

    @Override
    public int countTestMethods() {
        return getAllTestMethods().size();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy