TestOption

public class TestOption
extends Object implements Comparable<TestOption>

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

公共方法

compareTo

public int compareTo (TestOption option)

参数
option TestOption

返回
int

等于

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