com.android.ddmlib.testrunner
Class TestIdentifier

java.lang.Object
  extended by com.android.ddmlib.testrunner.TestIdentifier

public class TestIdentifier
extends java.lang.Object

Identifies a parsed instrumentation test.


Constructor Summary
TestIdentifier(java.lang.String className, java.lang.String testName)
          Creates a test identifier.
 
Method Summary
 boolean equals(java.lang.Object other)
          Tests equality by comparing class and method name.
 java.lang.String getClassName()
          Returns the fully qualified class name of the test.
 java.lang.String getTestName()
          Returns the name of the test.
 int hashCode()
          Generates hashCode based on class and method name.
 java.lang.String toString()
          Generates user friendly string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestIdentifier

public TestIdentifier(java.lang.String className,
                      java.lang.String testName)
Creates a test identifier.

Parameters:
className - fully qualified class name of the test. Cannot be null.
testName - name of the test. Cannot be null.
Method Detail

getClassName

public java.lang.String getClassName()
Returns the fully qualified class name of the test.


getTestName

public java.lang.String getTestName()
Returns the name of the test.


equals

public boolean equals(java.lang.Object other)
Tests equality by comparing class and method name.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Generates hashCode based on class and method name.

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Generates user friendly string.

Overrides:
toString in class java.lang.Object


Copyright © 2008-2011. All Rights Reserved.