junit.runner.SimpleTestCollector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dragome-bytecode-js-compiler Show documentation
Show all versions of dragome-bytecode-js-compiler Show documentation
Dragome SDK module: bytecode to javascript compiler
package junit.runner;
/**
* An implementation of a TestCollector that considers
* a class to be a test class when it contains the
* pattern "Test" in its name
* @see TestCollector
*/
public class SimpleTestCollector extends ClassPathTestCollector {
public SimpleTestCollector() {
}
protected boolean isTestClass(String classFileName) {
return
classFileName.endsWith(".class") &&
classFileName.indexOf('$') < 0 &&
classFileName.indexOf("Test") > 0;
}
}