FileDocCategorySizeDatePackage
TestSuiteReference.javaAPI DocAndroid 1.5 API2243Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.adt.launch.junit.runtime

TestSuiteReference

public class TestSuiteReference extends AndroidTestReference
Reference for an Android test suite aka class.

Fields Summary
private final String
mClassName
private List
mTests
Constructors Summary
TestSuiteReference(String className)
Creates a TestSuiteReference

param
className the fully qualified name of the test class

         mClassName = className; 
         mTests = new ArrayList<TestCaseReference>();
    
Methods Summary
voidaddTest(TestCaseReference testRef)
Adds a test method to this suite.

param
testRef the {@link TestCaseReference} to add

        mTests.add(testRef);
    
public intcountTestCases()
Returns a count of the number of test cases included in this suite.

        return mTests.size();
    
public java.lang.StringgetName()
Return the name of this test class.

        return mClassName;
    
public voidsendTree(org.eclipse.jdt.internal.junit.runner.IVisitsTestTrees notified)
Sends test identifier and test count information for this test class, and all its included test methods.

param
notified the {@link IVisitsTestTrees} to send test info too

        notified.visitTreeEntry(getIdentifier(), true, countTestCases());
        for (TestCaseReference ref : mTests) {
            ref.sendTree(notified);
        }