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