ITestAnnotationFilterReceiver

public interface ITestAnnotationFilterReceiver

com.android.tradefed.testtype.ITestAnnotationFilterReceiver


可根據註解篩選要執行的測試。

只有在測試符合一或多個包含篩選器,且不符合任何排除篩選器時,才會執行。如果未指定包含篩選條件,只要測試不符合任何排除篩選條件,就應執行所有測試。

摘要

公用方法

abstract void addAllExcludeAnnotation( notAnnotations)

新增 ERROR(/Set) 註解,以便在測試標示為排除時使用。

abstract void addAllIncludeAnnotation( annotations)

新增註解的 ERROR(/Set),如果測試標記為註解,則會納入。

abstract void addExcludeAnnotation(String notAnnotation)

新增註解,用於排除標示為此註解的測試。

abstract void addIncludeAnnotation(String annotation)

新增註解,用於在測試標記為此註解時加入註解。

abstract void clearExcludeAnnotations()

刪除目前追蹤的所有排除註解。

abstract void clearIncludeAnnotations()

刪除目前追蹤的所有包含註解。

abstract getExcludeAnnotations()

傳回要排除的註解的目前 ERROR(/Set)

abstract getIncludeAnnotations()

傳回要納入的註解目前的 ERROR(/Set)

公用方法

addAllExcludeAnnotation

public abstract void addAllExcludeAnnotation ( notAnnotations)

新增 ERROR(/Set) 註解,以便在測試標示為排除時使用。

參數
notAnnotations

addAllIncludeAnnotation

public abstract void addAllIncludeAnnotation ( annotations)

新增註解的 ERROR(/Set),如果測試標記為註解,則會納入。

參數
annotations

addExcludeAnnotation

public abstract void addExcludeAnnotation (String notAnnotation)

新增註解,用於排除標示為此註解的測試。

參數
notAnnotation String

addIncludeAnnotation

public abstract void addIncludeAnnotation (String annotation)

新增註解,用於在測試標記為此註解時加入。

參數
annotation String

clearExcludeAnnotations

public abstract void clearExcludeAnnotations ()

刪除目前追蹤的所有排除註解。

clearIncludeAnnotations

public abstract void clearIncludeAnnotations ()

刪除目前追蹤的所有納入註解。

getExcludeAnnotations

public abstract  getExcludeAnnotations ()

傳回要排除的註解的目前 ERROR(/Set)

傳回

getIncludeAnnotations

public abstract  getIncludeAnnotations ()

傳回要納入的註解目前的 ERROR(/Set)

傳回