TestFilterHelper

public class TestFilterHelper
extends Object

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


מחלקת עזר לסינון בדיקות

סיכום

‫constructors ציבוריים

TestFilterHelper()
TestFilterHelper(Collection<String> includeFilters, Collection<String> excludeFilters, Collection<String> includeAnnotation, Collection<String> excludeAnnotation)

‫methods ציבוריים

void addAllExcludeAnnotation(Set<String> notAnnotations)

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

void addAllExcludeFilters(Set<String> filters)

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

void addAllIncludeAnnotation(Set<String> annotations)

מוסיף את Set של הערת ההכללה של הבדיקה להפעלה

void addAllIncludeFilters(Set<String> filters)

הוספה של 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()
Set<String> getExcludeAnnotation()
Set<String> getExcludeFilters()
Set<String> getIncludeAnnotation()
Set<String> getIncludeFilters()
boolean shouldRun(Description desc, List<File> extraJars)

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

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

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

boolean shouldTestRun(AnnotatedElement annotatedElement)

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

boolean shouldTestRun(Description desc)

בודקים אם התג Description שמכיל הערות עובר את המסנן

‫constructors ציבוריים

TestFilterHelper

public TestFilterHelper ()

TestFilterHelper

public TestFilterHelper (Collection<String> includeFilters, 
                Collection<String> excludeFilters, 
                Collection<String> includeAnnotation, 
                Collection<String> excludeAnnotation)

פרמטרים
includeFilters Collection

excludeFilters Collection

includeAnnotation Collection

excludeAnnotation Collection

‫methods ציבוריים

addAllExcludeAnnotation

public void addAllExcludeAnnotation (Set<String> notAnnotations)

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

פרמטרים
notAnnotations Set

addAllExcludeFilters

public void addAllExcludeFilters (Set<String> filters)

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

פרמטרים
filters Set

addAllIncludeAnnotation

public void addAllIncludeAnnotation (Set<String> annotations)

הוספת Set של הערת הכללה של הבדיקה להרצה

פרמטרים
annotations Set

addAllIncludeFilters

public void addAllIncludeFilters (Set<String> filters)

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

פרמטרים
filters Set

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 Set<String> getExcludeAnnotation ()

החזרות
Set<String>

getExcludeFilters

public Set<String> getExcludeFilters ()

החזרות
Set<String>

getIncludeAnnotation

public Set<String> getIncludeAnnotation ()

החזרות
Set<String>

getIncludeFilters

public Set<String> getIncludeFilters ()

החזרות
Set<String>

shouldRun

public boolean shouldRun (Description desc, 
                List<File> extraJars)

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

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

extraJars List: רשימה של 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

shouldTestRun

public boolean shouldTestRun (Description desc)

בודקים אם התג Description שמכיל הערות עובר את המסנן

פרמטרים
desc Description: הרכיב לסינון

החזרות
boolean הערך true אם הניסוי צריך לפעול, אחרת הערך false