|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.test.suitebuilder.TestGrouping
public class TestGrouping
Represents a collection of test classes present on the classpath. You can add individual classes
or entire packages. By default sub-packages are included recursively, but methods are
provided to allow for arbitrary inclusion or exclusion of sub-packages. Typically a
TestGrouping will have only one root package, but this is not a requirement.
Not needed for 1.0 SDK.
| Field Summary | |
|---|---|
protected String |
firstIncludedPackage
|
static Comparator<Class<? extends TestCase>> |
SORT_BY_FULLY_QUALIFIED_NAME
|
static Comparator<Class<? extends TestCase>> |
SORT_BY_SIMPLE_NAME
|
(package private) SortedSet<Class<? extends TestCase>> |
testCaseClasses
|
| Constructor Summary | |
|---|---|
TestGrouping(Comparator<Class<? extends TestCase>> comparator)
|
|
| Method Summary | |
|---|---|
TestGrouping |
addPackagesRecursive(String... packageNames)
Include all tests in the given packages and all their sub-packages, unless otherwise specified. |
boolean |
equals(Object o)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. |
String |
getFirstIncludedPackage()
|
(package private) SortedSet<Class<? extends TestCase>> |
getTestCaseClasses()
|
protected List<Method> |
getTestMethods(Class<? extends TestCase> testCaseClass)
|
List<TestMethod> |
getTests()
|
int |
hashCode()
Returns an integer hash code for the receiver. |
TestGrouping |
removePackagesRecursive(String... packageNames)
Exclude all tests in the given packages and all their sub-packages, unless otherwise specified. |
void |
setClassLoader(ClassLoader classLoader)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
SortedSet<Class<? extends TestCase>> testCaseClasses
public static final Comparator<Class<? extends TestCase>> SORT_BY_SIMPLE_NAME
public static final Comparator<Class<? extends TestCase>> SORT_BY_FULLY_QUALIFIED_NAME
protected String firstIncludedPackage
| Constructor Detail |
|---|
public TestGrouping(Comparator<Class<? extends TestCase>> comparator)
| Method Detail |
|---|
public List<TestMethod> getTests()
protected List<Method> getTestMethods(Class<? extends TestCase> testCaseClass)
SortedSet<Class<? extends TestCase>> getTestCaseClasses()
public boolean equals(Object o)
Object
equals in class Objecto - Object the object to compare with this object.
true if the object is the same as this
object false if it is different from this object.Object.hashCode()public int hashCode()
Objecttrue when passed to .equals must
answer the same value for this method.
hashCode in class ObjectObject.equals(java.lang.Object)public TestGrouping addPackagesRecursive(String... packageNames)
packageNames - Names of packages to add.
TestGrouping for method chaining.public TestGrouping removePackagesRecursive(String... packageNames)
packageNames - Names of packages to remove.
TestGrouping for method chaining.public String getFirstIncludedPackage()
addPackagesRecursive(String[]), or null
if that method was never called.public void setClassLoader(ClassLoader classLoader)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||