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

AndroidTestReference

public abstract class AndroidTestReference extends Object implements org.eclipse.jdt.internal.junit.runner.ITestReference, org.eclipse.jdt.internal.junit.runner.ITestIdentifier
Base implementation of the Eclipse {@link ITestReference} and {@link ITestIdentifier} interfaces for Android tests.

Provides generic equality/hashcode services

Fields Summary
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object obj)
Compares {@link ITestIdentifier} using names

        if (obj instanceof ITestIdentifier) {
            ITestIdentifier testid = (ITestIdentifier) obj;
            return getName().equals(testid.getName());
        }
        return false;
    
public org.eclipse.jdt.internal.junit.runner.ITestIdentifiergetIdentifier()
Gets the {@link ITestIdentifier} for this test reference.

        // this class serves as its own test identifier
        return this;
    
public inthashCode()

        return getName().hashCode();
    
public voidrun(org.eclipse.jdt.internal.junit.runner.TestExecution execution)
Not supported.

        throw new UnsupportedOperationException();