|
JUnit-addons version 1.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--junitx.util.SimpleTestFilter
Simple filter for test classes (ending with 'Test'). Also provides convenient methods to extract the name and package of a class.
| Constructor Summary | |
SimpleTestFilter()
Constructs an empty SimpleTestFilter object. |
|
| Method Summary | |
static java.lang.String |
getClassName(java.lang.Class cls)
Returns the name of a given class. |
static java.lang.String |
getClassName(java.lang.String classpath)
Returns the name of a given class. |
static java.lang.String |
getPackageName(java.lang.Class cls)
Returns the package name of a given class or an empty string if the class wasn't in a package. |
static java.lang.String |
getPackageName(java.lang.String classpath)
Returns the path and package name of a given class or null if the class wasn't in a package. |
boolean |
include(java.lang.Class cls)
Returns true if: the class is neither an interface nor abstract |
boolean |
include(java.lang.String classpath)
Returns true if: the name of the class ends with 'Test' |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleTestFilter()
| Method Detail |
public boolean include(java.lang.String classpath)
include in interface TestFiltergetClassName(String),
getPackageName(String)public boolean include(java.lang.Class cls)
include in interface TestFiltergetClassName(Class),
getPackageName(Class)public static java.lang.String getClassName(java.lang.Class cls)
public static java.lang.String getPackageName(java.lang.Class cls)
public static java.lang.String getClassName(java.lang.String classpath)
public static java.lang.String getPackageName(java.lang.String classpath)
|
JUnit-addons version 1.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||