TestOption
public
class
TestOption
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.testmapping.TestOption |
存储在 TEST_MAPPING 文件中设置的测试选项详细信息。
摘要
公共构造函数 | |
|---|---|
TestOption(String name, String value)
|
|
公共方法 | |
|---|---|
int
|
compareTo(TestOption option)
|
boolean
|
equals(Object obj)
|
String
|
getName()
|
String
|
getValue()
|
int
|
hashCode()
|
boolean
|
isExclusive()
检查该选项是否仅用于排除特定测试。 |
boolean
|
isInclusive()
检查该选项是否用于仅包含特定测试。 |
String
|
toString()
|
公共构造函数
TestOption
public TestOption (String name,
String value)| 参数 | |
|---|---|
name |
String |
value |
String |
公共方法
equals
public boolean equals (Object obj)
| 参数 | |
|---|---|
obj |
Object |
| 返回 | |
|---|---|
boolean |
|
getName
public String getName ()
| 返回 | |
|---|---|
String |
|
getValue
public String getValue ()
| 返回 | |
|---|---|
String |
|
hashCode
public int hashCode ()
| 返回 | |
|---|---|
int |
|
isExclusive
public boolean isExclusive ()
检查该选项是否仅用于排除特定测试。
一些示例专有选项包括:
exclude-filter
negative-testname-filter (GTest)
test-file-exclude-filter (AndroidJUnitTest)
exclude-annotation (AndroidJUnitTest)
| 返回 | |
|---|---|
boolean |
如果该选项仅用于排除特定测试,则为 true。 |
isInclusive
public boolean isInclusive ()
检查该选项是否用于仅包含特定测试。
一些包容性选项示例如下:
include-filter
positive-testname-filter (GTest)
test-file-include-filter (AndroidJUnitTest)
include-annotation (AndroidJUnitTest)
| 返回 | |
|---|---|
boolean |
如果此选项用于仅包含特定测试,则为 true。 |
toString
public String toString ()
| 返回 | |
|---|---|
String |
|