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

公用方法

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