TestFilterYardımcısı
public class TestFilterHelper
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.TestFilterHelper |
Filtreleme testleri için yardımcı sınıf
Özet
kamu inşaatçılar | |
---|---|
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) |
Genel yöntemler | |
---|---|
void | addAllExcludeAnnotation ( notAnnotations) addAllExcludeAnnotation ( notAnnotations) Çalıştırılacak testin dışlama notunun |
void | addAllExcludeFilters ( filters) addAllExcludeFilters ( filters) Testlerin hariç tutulacağı filtrelerin |
void | addAllIncludeAnnotation ( annotations) addAllIncludeAnnotation ( annotations) Çalıştırılacak testin içerme notunun |
void | addAllIncludeFilters ( filters) addAllIncludeFilters ( filters) Testlerin dahil edileceği filtrelerin |
void | addExcludeAnnotation (String notAnnotation) Çalıştırılacak testin bir dışlama açıklamasını ekler |
void | addExcludeFilter (String filter) Hangi testlerin hariç tutulacağına ilişkin bir filtre ekler |
void | addIncludeAnnotation (String annotation) Çalıştırılacak teste bir içerme ek açıklaması ekler |
void | addIncludeFilter (String filter) Hangi testlerin dahil edileceğine dair bir filtre ekler |
void | clearExcludeAnnotations () |
void | clearExcludeFilters () |
void | clearIncludeAnnotations () |
void | clearIncludeFilters () |
getExcludeAnnotation () | |
getExcludeFilters () | |
getIncludeAnnotation () | |
getIncludeFilters () | |
boolean | shouldRun (Description desc, extraJars) shouldRun (Description desc, extraJars) Ek açıklaması olan bir öğenin filtreden geçip geçmediğini kontrol edin |
boolean | shouldRun (String packageName, Class<?> classObj, Method method) Ek açıklaması olan bir öğenin filtreden geçip geçmediğini kontrol edin |
boolean | shouldTestRun (AnnotatedElement annotatedElement) Ek açıklaması olan bir öğenin filtreden geçip geçmediğini kontrol edin |
kamu inşaatçılar
TestFilterYardımcısı
public TestFilterHelper ()
TestFilterYardımcısı
public TestFilterHelper (includeFilters, excludeFilters, includeAnnotation, excludeAnnotation)
parametreler | |
---|---|
includeFilters | |
excludeFilters | |
includeAnnotation | |
excludeAnnotation |
Genel yöntemler
addAllExcludeAnnotation
public void addAllExcludeAnnotation (notAnnotations)
Çalıştırılacak testin dışlama notunun ERROR(/Set)
ekler
parametreler | |
---|---|
notAnnotations |
addAllExcludeFilters
public void addAllExcludeFilters (filters)
Testlerin hariç tutulacağı filtrelerin ERROR(/Set)
ekler.
parametreler | |
---|---|
filters |
addAllIncludeAnnotation
public void addAllIncludeAnnotation (annotations)
Çalıştırılacak testin içerme notunun ERROR(/Set)
değerini ekler
parametreler | |
---|---|
annotations |
addAllIncludeFilters
public void addAllIncludeFilters (filters)
Testlerin dahil edileceği filtrelerin ERROR(/Set)
ekler.
parametreler | |
---|---|
filters |
addExcludeAnnotation
public void addExcludeAnnotation (String notAnnotation)
Çalıştırılacak testin bir dışlama açıklamasını ekler
parametreler | |
---|---|
notAnnotation | String |
ekleExcludeFilter
public void addExcludeFilter (String filter)
Hangi testlerin hariç tutulacağına ilişkin bir filtre ekler
parametreler | |
---|---|
filter | String |
addIncludeAnnotation
public void addIncludeAnnotation (String annotation)
Çalıştırılacak teste bir içerme ek açıklaması ekler
parametreler | |
---|---|
annotation | String |
ekleIncludeFilter
public void addIncludeFilter (String filter)
Hangi testlerin dahil edileceğine dair bir filtre ekler
parametreler | |
---|---|
filter | String |
clearExcludeAnnotations
public void clearExcludeAnnotations ()
temizleHariç Filtreler
public void clearExcludeFilters ()
clearIncludeAçıklamalar
public void clearIncludeAnnotations ()
temizleIncludeFilters
public void clearIncludeFilters ()
getExcludeAnnotation
publicgetExcludeAnnotation ()
İadeler | |
---|---|
getExcludeFilters
publicgetExcludeFilters ()
İadeler | |
---|---|
getIncludeAnnotation
publicgetIncludeAnnotation ()
İadeler | |
---|---|
getIncludeFilters
publicgetIncludeFilters ()
İadeler | |
---|---|
çalıştırmalı
public boolean shouldRun (Description desc,extraJars)
Ek açıklaması olan bir öğenin filtreden geçip geçmediğini kontrol edin
parametreler | |
---|---|
desc | Description : testi açıklayan bir Description . |
extraJars | ERROR(/File) listesi. |
İadeler | |
---|---|
boolean | test yönteminin çalışması gerekiyorsa true, aksi takdirde false |
çalıştırmalı
public boolean shouldRun (String packageName, Class<?> classObj, Method method)
Ek açıklaması olan bir öğenin filtreden geçip geçmediğini kontrol edin
parametreler | |
---|---|
packageName | String : yöntemin paketinin adı |
classObj | Class : yöntemin sınıfı |
method | Method : test yöntemi |
İadeler | |
---|---|
boolean | test yönteminin çalışması gerekiyorsa true, aksi takdirde false |
gerekirTestÇalıştır
public boolean shouldTestRun (AnnotatedElement annotatedElement)
Ek açıklaması olan bir öğenin filtreden geçip geçmediğini kontrol edin
parametreler | |
---|---|
annotatedElement | AnnotatedElement : filtrelenecek öğe |
İadeler | |
---|---|
boolean | test çalışması gerekiyorsa true, aksi takdirde false |