TestFilterHelper

public class TestFilterHelper
extends Object

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


כיתה לעזרה בסינון בדיקות

סיכום

קונסטרוקטורים גלויים לכולם

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

שיטות ציבוריות

void addAllExcludeAnnotation( notAnnotations)

הוספת הערת ההחרגה ERROR(/Set) של הבדיקה להרצה

void addAllExcludeFilters( filters)

הוספת ERROR(/Set) של מסננים של בדיקות שרוצים להחריג.

void addAllIncludeAnnotation( annotations)

הוספת הערת ההכללה ERROR(/Set) של הבדיקה שרוצים להריץ

void addAllIncludeFilters( filters)

הוספת ERROR(/Set) של מסננים של בדיקות שרוצים לכלול

void addExcludeAnnotation(String notAnnotation)

הוספת הערה להחרגה של הבדיקה שרוצים להריץ

void addExcludeFilter(String filter)

הוספת מסנן של הבדיקות שרוצים להחריג

void addIncludeAnnotation(String annotation)

הוספת הערה של include לבדיקה שרוצים להריץ

void addIncludeFilter(String filter)

הוספת מסנן של הבדיקות שרוצים לכלול

void clearExcludeAnnotations()
void clearExcludeFilters()
void clearIncludeAnnotations()
void clearIncludeFilters()
getExcludeAnnotation()
getExcludeFilters()
getIncludeAnnotation()
getIncludeFilters()
boolean shouldRun(Description desc, extraJars)

בדיקה אם רכיב עם הערה עובר את הסינון

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

בדיקה אם רכיב עם הערה עובר את הסינון

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)

הוספת הערה של include לבדיקה שרוצים להריץ

פרמטרים
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 ()

החזרות

shouldRun

public boolean shouldRun (Description desc, 
                 extraJars)

בדיקה אם רכיב עם הערה עובר את הסינון

פרמטרים
desc Description: Description שמתאר את הבדיקה.

extraJars : רשימה של ERROR(/File) שמצביעים על קובצי jar נוספים לטעינה.

החזרות
boolean true אם שיטת הבדיקה צריכה לפעול, ו-false אחרת

shouldRun

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

בדיקה אם רכיב עם הערה עובר את הסינון

פרמטרים
packageName String: שם החבילה של השיטה

classObj Class: הכיתה של השיטה

method Method: שיטת בדיקה

החזרות
boolean true אם שיטת הבדיקה צריכה לפעול, ו-false אחרת

shouldTestRun

public boolean shouldTestRun (AnnotatedElement annotatedElement)

בדיקה אם רכיב עם הערה עובר את הסינון

פרמטרים
annotatedElement AnnotatedElement: הרכיב לסינון

החזרות
boolean true אם הבדיקה צריכה לפעול, false אחרת