TestCaseReferencepublic class TestCaseReference extends AndroidTestReference Reference for a single Android test method. |
Fields Summary |
---|
private final String | mClassName | private final String | mTestName |
Constructors Summary |
---|
TestCaseReference(String className, String testName)Creates a TestCaseReference from a class and method name
mClassName = className;
mTestName = testName;
| TestCaseReference(com.android.ddmlib.testrunner.TestIdentifier test)Creates a TestCaseReference from a {@link TestIdentifier}
mClassName = test.getClassName();
mTestName = test.getTestName();
|
Methods Summary |
---|
public int | countTestCases()Returns a count of the number of test cases referenced. Is always one for this class.
return 1;
| public java.lang.String | getName()Returns the identifier of this test, in a format expected by JDT JUnit
return MessageFormat.format(MessageIds.TEST_IDENTIFIER_MESSAGE_FORMAT,
new Object[] { mTestName, mClassName});
| public void | sendTree(org.eclipse.jdt.internal.junit.runner.IVisitsTestTrees notified)Sends test identifier and test count information for this test
notified.visitTreeEntry(getIdentifier(), false, countTestCases());
|
|