com.android.ddmlib.testrunner
Class TestIdentifier

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

public class TestIdentifier
extends Object

Identifies a parsed instrumentation test.


Constructor Summary
TestIdentifier(String className, String testName)
          Creates a test identifier.
 
Method Summary
 boolean equals(Object other)
          Tests equality by comparing class and method name.
 String getClassName()
          Returns the fully qualified class name of the test.
 String getTestName()
          Returns the name of the test.
 int hashCode()
          Generates hashCode based on class and method name.
 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(String className,
                      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 String getClassName()
Returns the fully qualified class name of the test.


getTestName

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


equals

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

Overrides:
equals in class Object

hashCode

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

Overrides:
hashCode in class Object

toString

public String toString()
Generates user friendly string.

Overrides:
toString in class Object


Copyright © 2008-2012. All Rights Reserved.