FileDocCategorySizeDatePackage
TestIdentifier.javaAPI DocAndroid 1.5 API2212Wed May 06 22:41:08 BST 2009com.android.ddmlib.testrunner

TestIdentifier

public class TestIdentifier extends Object
Identifies a parsed instrumentation test

Fields Summary
private final String
mClassName
private final String
mTestName
Constructors Summary
public TestIdentifier(String className, String testName)
Creates a test identifier

param
className fully qualified class name of the test. Cannot be null.
param
testName name of the test. Cannot be null.

        if (className == null || testName == null) {
            throw new IllegalArgumentException("className and testName must " + 
                    "be non-null");
        }
        mClassName = className;
        mTestName = testName;
    
Methods Summary
public booleanequals(java.lang.Object other)
Tests equality by comparing class and method name

        if (!(other instanceof TestIdentifier)) {
            return false;
        }
        TestIdentifier otherTest = (TestIdentifier)other;
        return getClassName().equals(otherTest.getClassName())  && 
                getTestName().equals(otherTest.getTestName());
    
public java.lang.StringgetClassName()
Returns the fully qualified class name of the test

        return mClassName;
    
public java.lang.StringgetTestName()
Returns the name of the test

        return mTestName;
    
public inthashCode()
Generates hashCode based on class and method name.

        return getClassName().hashCode() * 31 + getTestName().hashCode();