TestIdentifier
public
class
TestIdentifier
extends Object
| java.lang.Object | |
| ↳ | com.android.ddmlib.testrunner.TestIdentifier |
标识已解析的插桩测试。
摘要
公共构造函数 | |
|---|---|
TestIdentifier(String className, String testName)
创建测试标识符。 |
|
TestIdentifier(String className, String testName, int testIndex)
使用测试索引创建测试标识符。 |
|
公共方法 | |
|---|---|
boolean
|
equals(Object obj)
|
String
|
getClassName()
返回测试的完全限定类名。 |
int
|
getTestIndex()
返回测试的索引。 |
String
|
getTestName()
返回测试的名称。 |
int
|
hashCode()
|
String
|
toString()
|
公共构造函数
TestIdentifier
public TestIdentifier (String className,
String testName)创建测试标识符。
| 参数 | |
|---|---|
className |
String:测试的完全限定类名。不能为 null。 |
testName |
String:测试的名称。不能为 null。 |
TestIdentifier
public TestIdentifier (String className,
String testName,
int testIndex)创建具有测试索引的测试标识符。
| 参数 | |
|---|---|
className |
String:测试的完全限定类名。不能为 null。 |
testName |
String:测试的名称。不能为 null。 |
testIndex |
int:相应测试运行的索引。 |
公共方法
等号
public boolean equals (Object obj)
| 参数 | |
|---|---|
obj |
Object |
| 返回 | |
|---|---|
boolean |
|
getClassName
public String getClassName ()
返回测试的完全限定类名。
| 返回 | |
|---|---|
String |
|
getTestIndex
public int getTestIndex ()
返回测试的索引。
| 返回 | |
|---|---|
int |
|
getTestName
public String getTestName ()
返回测试的名称。
| 返回 | |
|---|---|
String |
|
hashCode
public int hashCode ()
| 返回 | |
|---|---|
int |
|
toString
public String toString ()
| 返回 | |
|---|---|
String |
|