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 | |
