Google致力於提高黑人社區的種族平等。 怎麼看。
本頁面由 Cloud Translation API 翻譯而成。
Switch to English

TestFilterHelper

public class TestFilterHelper
extends Object

java.lang.Object
com.android.tradefed.util.TestFilterHelper


篩選測試的幫助類

摘要

公共建設者

TestFilterHelper ()
TestFilterHelper ( includeFilters, excludeFilters, includeAnnotation, excludeAnnotation) TestFilterHelper ( includeFilters, excludeFilters, includeAnnotation, excludeAnnotation) TestFilterHelper ( includeFilters, excludeFilters, includeAnnotation, excludeAnnotation) TestFilterHelper ( includeFilters, excludeFilters, includeAnnotation, excludeAnnotation) TestFilterHelper ( includeFilters, excludeFilters, includeAnnotation, excludeAnnotation)

公開方法

void addAllExcludeAnnotation ( notAnnotations) addAllExcludeAnnotation ( notAnnotations)

添加要運行的測試的排除註釋的ERROR(/Set)

void addAllExcludeFilters ( filters) addAllExcludeFilters ( filters)

添加要排除其測試的過濾器的ERROR(/Set)

void addAllIncludeAnnotation ( annotations) addAllIncludeAnnotation ( annotations)

添加要運行的測試的包含註釋的ERROR(/Set)

void addAllIncludeFilters ( filters) addAllIncludeFilters ( filters)

添加要包含其測試的過濾器的ERROR(/Set)

void addExcludeAnnotation (String notAnnotation)

添加要運行的測試的排除註釋

void addExcludeFilter (String filter)

添加要排除哪些測試的過濾器

void addIncludeAnnotation (String annotation)

添加要運行的測試的包含註釋

void addIncludeFilter (String filter)

添加要包含哪些測試的過濾器

void clearExcludeAnnotations ()
void clearExcludeFilters ()
void clearIncludeAnnotations ()
void clearIncludeFilters ()
getExcludeAnnotation ()
getExcludeFilters ()
getIncludeAnnotation ()
getIncludeFilters ()
boolean shouldRun (String packageName, Class<?> classObj, Method method)

檢查具有註釋的元素是否通過過濾器

boolean shouldRun (Description desc)

檢查具有註釋的元素是否通過過濾器

boolean shouldTestRun (AnnotatedElement annotatedElement)

檢查具有註釋的元素是否通過過濾器

公共建設者

TestFilterHelper

public TestFilterHelper ()

TestFilterHelper

public TestFilterHelper ( includeFilters, 
                 excludeFilters, 
                 includeAnnotation, 
                 excludeAnnotation)

參量
includeFilters

excludeFilters

includeAnnotation

excludeAnnotation

公開方法

addAllExcludeAnnotation

public void addAllExcludeAnnotation ( notAnnotations)

添加要運行的測試的排除註釋的ERROR(/Set)

參量
notAnnotations

addAllExcludeFilters

public void addAllExcludeFilters ( filters)

添加要排除其測試的過濾器的ERROR(/Set)

參量
filters

addAllIncludeAnnotation

public void addAllIncludeAnnotation ( annotations)

添加要運行的測試的包含註釋的ERROR(/Set)

參量
annotations

addAllIncludeFilters

public void addAllIncludeFilters ( filters)

添加要包含其測試的過濾器的ERROR(/Set)

參量
filters

addExcludeAnnotation

public void addExcludeAnnotation (String notAnnotation)

添加要運行的測試的排除註釋

參量
notAnnotation String

addExcludeFilter

public void addExcludeFilter (String filter)

添加要排除哪些測試的過濾器

參量
filter String

addIncludeAnnotation

public void addIncludeAnnotation (String annotation)

添加要運行的測試的包含註釋

參量
annotation String

addIncludeFilter

public void addIncludeFilter (String filter)

添加要包含哪些測試的過濾器

參量
filter String

clearExcludeAnnotations

public void clearExcludeAnnotations ()

clearExcludeFilters

public void clearExcludeFilters ()

clearIncludeAnnotations

public void clearIncludeAnnotations ()

clearIncludeFilters

public void clearIncludeFilters ()

getExcludeAnnotation

public  getExcludeAnnotation ()

退貨

getExcludeFilters

public  getExcludeFilters ()

退貨

getIncludeAnnotation

public  getIncludeAnnotation ()

退貨

getIncludeFilters

public  getIncludeFilters ()

退貨

應該運行

public boolean shouldRun (String packageName, 
                Class<?> classObj, 
                Method method)

檢查具有註釋的元素是否通過過濾器

參量
packageName String :方法包的名稱

classObj Class :方法的類

method Method :測試方法

退貨
boolean 如果應該運行測試方法,則為true,否則為false

應該運行

public boolean shouldRun (Description desc)

檢查具有註釋的元素是否通過過濾器

參量
desc Description :一個Description描述測試。

退貨
boolean 如果應該運行測試方法,則為true,否則為false

shouldTestRun

public boolean shouldTestRun (AnnotatedElement annotatedElement)

檢查具有註釋的元素是否通過過濾器

參量
annotatedElement AnnotatedElement :要過濾的元素

退貨
boolean 如果應該運行測試,則為true,否則為false