Pomocnik filtra testowego
public class TestFilterHelper
extends Object
Obiekt Java.lang.Object | |
↳ | com.android.tradefed.util.TestFilterHelper |
Klasa pomocnicza do testów filtrowania
Streszczenie
Konstruktorzy publiczni | |
---|---|
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) |
Metody publiczne | |
---|---|
void | addAllExcludeAnnotation ( notAnnotations) addAllExcludeAnnotation ( notAnnotations) Dodaje adnotację |
void | addAllExcludeFilters ( filters) addAllExcludeFilters ( filters) Dodaje |
void | addAllIncludeAnnotation ( annotations) addAllIncludeAnnotation ( annotations) Dodaje |
void | addAllIncludeFilters ( filters) addAllIncludeFilters ( filters) Dodaje |
void | addExcludeAnnotation (String notAnnotation) Dodaje adnotację wykluczającą test do uruchomienia |
void | addExcludeFilter (String filter) Dodaje filtr określający, które testy należy wykluczyć |
void | addIncludeAnnotation (String annotation) Dodaje adnotację obejmującą test do uruchomienia |
void | addIncludeFilter (String filter) Dodaje filtr określający, które testy należy uwzględnić |
void | clearExcludeAnnotations () |
void | clearExcludeFilters () |
void | clearIncludeAnnotations () |
void | clearIncludeFilters () |
getExcludeAnnotation () | |
getExcludeFilters () | |
getIncludeAnnotation () | |
getIncludeFilters () | |
boolean | shouldRun (Description desc, extraJars) shouldRun (Description desc, extraJars) Sprawdź, czy element posiadający adnotację przechodzi przez filtr |
boolean | shouldRun (String packageName, Class<?> classObj, Method method) Sprawdź, czy element posiadający adnotację przechodzi przez filtr |
boolean | shouldTestRun (AnnotatedElement annotatedElement) Sprawdź, czy element posiadający adnotację przechodzi przez filtr |
Konstruktorzy publiczni
Pomocnik filtra testowego
public TestFilterHelper ()
Pomocnik filtra testowego
public TestFilterHelper (includeFilters, excludeFilters, includeAnnotation, excludeAnnotation)
Parametry | |
---|---|
includeFilters | |
excludeFilters | |
includeAnnotation | |
excludeAnnotation |
Metody publiczne
addAllExcludeAdnotacja
public void addAllExcludeAnnotation (notAnnotations)
Dodaje adnotację ERROR(/Set)
wykluczającą test do uruchomienia
Parametry | |
---|---|
notAnnotations |
addAllExcludeFilters
public void addAllExcludeFilters (filters)
Dodaje ERROR(/Set)
filtrów, z których testy mają zostać wykluczone.
Parametry | |
---|---|
filters |
addAllIncludeAdnotacja
public void addAllIncludeAnnotation (annotations)
Dodaje ERROR(/Set)
dołączonej adnotacji do testu, który ma zostać uruchomiony
Parametry | |
---|---|
annotations |
dodajAllIncludeFilters
public void addAllIncludeFilters (filters)
Dodaje ERROR(/Set)
filtrów, które należy uwzględnić w testach
Parametry | |
---|---|
filters |
dodajWykluczAdnotację
public void addExcludeAnnotation (String notAnnotation)
Dodaje adnotację wykluczającą test do uruchomienia
Parametry | |
---|---|
notAnnotation | String |
dodajWykluczFiltr
public void addExcludeFilter (String filter)
Dodaje filtr określający, które testy należy wykluczyć
Parametry | |
---|---|
filter | String |
dodajIncludeAdnotację
public void addIncludeAnnotation (String annotation)
Dodaje adnotację obejmującą test do uruchomienia
Parametry | |
---|---|
annotation | String |
dodajIncludeFilter
public void addIncludeFilter (String filter)
Dodaje filtr określający, które testy należy uwzględnić
Parametry | |
---|---|
filter | String |
wyczyśćWykluczAdnotacje
public void clearExcludeAnnotations ()
wyczyśćWykluczFiltry
public void clearExcludeFilters ()
wyczyśćDołączAdnotacje
public void clearIncludeAnnotations ()
wyczyśćIncludeFilters
public void clearIncludeFilters ()
pobierzWykluczAdnotację
publicgetExcludeAnnotation ()
Zwroty | |
---|---|
getExcludeFilters
publicgetExcludeFilters ()
Zwroty | |
---|---|
pobierzIncludeAdnotację
publicgetIncludeAnnotation ()
Zwroty | |
---|---|
pobierzIncludeFilters
publicgetIncludeFilters ()
Zwroty | |
---|---|
powinien biegać
public boolean shouldRun (Description desc,extraJars)
Sprawdź, czy element posiadający adnotację przechodzi przez filtr
Parametry | |
---|---|
desc | Description : Description opisujący test. |
extraJars | ERROR(/File) wskazujących dodatkowe słoiki do załadowania. |
Zwroty | |
---|---|
boolean | true , jeśli metoda testowa powinna zostać uruchomiona, false w przeciwnym razie |
powinien biegać
public boolean shouldRun (String packageName, Class<?> classObj, Method method)
Sprawdź, czy element posiadający adnotację przechodzi przez filtr
Parametry | |
---|---|
packageName | String : nazwa pakietu metody |
classObj | Class : klasa metody |
method | Method : metoda testowa |
Zwroty | |
---|---|
boolean | true , jeśli metoda testowa powinna zostać uruchomiona, false w przeciwnym razie |
powinienTestRun
public boolean shouldTestRun (AnnotatedElement annotatedElement)
Sprawdź, czy element posiadający adnotację przechodzi przez filtr
Parametry | |
---|---|
annotatedElement | AnnotatedElement : element do filtrowania |
Zwroty | |
---|---|
boolean | true, jeśli test powinien zostać uruchomiony, false w przeciwnym razie |
Pomocnik filtra testowego
public class TestFilterHelper
extends Object
Obiekt Java.lang.Object | |
↳ | com.android.tradefed.util.TestFilterHelper |
Klasa pomocnicza do testów filtrowania
Streszczenie
Konstruktorzy publiczni | |
---|---|
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) |
Metody publiczne | |
---|---|
void | addAllExcludeAnnotation ( notAnnotations) addAllExcludeAnnotation ( notAnnotations) Dodaje adnotację |
void | addAllExcludeFilters ( filters) addAllExcludeFilters ( filters) Dodaje |
void | addAllIncludeAnnotation ( annotations) addAllIncludeAnnotation ( annotations) Dodaje |
void | addAllIncludeFilters ( filters) addAllIncludeFilters ( filters) Dodaje |
void | addExcludeAnnotation (String notAnnotation) Dodaje adnotację wykluczającą test do uruchomienia |
void | addExcludeFilter (String filter) Dodaje filtr określający, które testy należy wykluczyć |
void | addIncludeAnnotation (String annotation) Dodaje adnotację obejmującą test do uruchomienia |
void | addIncludeFilter (String filter) Dodaje filtr określający, które testy należy uwzględnić |
void | clearExcludeAnnotations () |
void | clearExcludeFilters () |
void | clearIncludeAnnotations () |
void | clearIncludeFilters () |
getExcludeAnnotation () | |
getExcludeFilters () | |
getIncludeAnnotation () | |
getIncludeFilters () | |
boolean | shouldRun (Description desc, extraJars) shouldRun (Description desc, extraJars) Sprawdź, czy element posiadający adnotację przechodzi przez filtr |
boolean | shouldRun (String packageName, Class<?> classObj, Method method) Sprawdź, czy element posiadający adnotację przechodzi przez filtr |
boolean | shouldTestRun (AnnotatedElement annotatedElement) Sprawdź, czy element posiadający adnotację przechodzi przez filtr |
Konstruktorzy publiczni
Pomocnik filtra testowego
public TestFilterHelper ()
Pomocnik filtra testowego
public TestFilterHelper (includeFilters, excludeFilters, includeAnnotation, excludeAnnotation)
Parametry | |
---|---|
includeFilters | |
excludeFilters | |
includeAnnotation | |
excludeAnnotation |
Metody publiczne
addAllExcludeAdnotacja
public void addAllExcludeAnnotation (notAnnotations)
Dodaje adnotację ERROR(/Set)
wykluczającą test do uruchomienia
Parametry | |
---|---|
notAnnotations |
addAllExcludeFilters
public void addAllExcludeFilters (filters)
Dodaje ERROR(/Set)
filtrów, z których testy mają zostać wykluczone.
Parametry | |
---|---|
filters |
addAllIncludeAdnotacja
public void addAllIncludeAnnotation (annotations)
Dodaje ERROR(/Set)
dołączonej adnotacji do testu, który ma zostać uruchomiony
Parametry | |
---|---|
annotations |
dodajAllIncludeFilters
public void addAllIncludeFilters (filters)
Dodaje ERROR(/Set)
filtrów, które należy uwzględnić w testach
Parametry | |
---|---|
filters |
dodajWykluczAdnotację
public void addExcludeAnnotation (String notAnnotation)
Dodaje adnotację wykluczającą test do uruchomienia
Parametry | |
---|---|
notAnnotation | String |
dodajWykluczFiltr
public void addExcludeFilter (String filter)
Dodaje filtr określający, które testy należy wykluczyć
Parametry | |
---|---|
filter | String |
dodajIncludeAdnotację
public void addIncludeAnnotation (String annotation)
Dodaje adnotację obejmującą test do uruchomienia
Parametry | |
---|---|
annotation | String |
dodajIncludeFilter
public void addIncludeFilter (String filter)
Dodaje filtr określający, które testy należy uwzględnić
Parametry | |
---|---|
filter | String |
wyczyśćWykluczAdnotacje
public void clearExcludeAnnotations ()
wyczyśćWykluczFiltry
public void clearExcludeFilters ()
wyczyśćDołączAdnotacje
public void clearIncludeAnnotations ()
wyczyśćIncludeFilters
public void clearIncludeFilters ()
pobierzWykluczAdnotację
publicgetExcludeAnnotation ()
Zwroty | |
---|---|
getExcludeFilters
publicgetExcludeFilters ()
Zwroty | |
---|---|
pobierzIncludeAdnotację
publicgetIncludeAnnotation ()
Zwroty | |
---|---|
pobierzIncludeFilters
publicgetIncludeFilters ()
Zwroty | |
---|---|
powinien biegać
public boolean shouldRun (Description desc,extraJars)
Sprawdź, czy element posiadający adnotację przechodzi przez filtr
Parametry | |
---|---|
desc | Description : Description opisujący test. |
extraJars | ERROR(/File) wskazujących dodatkowe słoiki do załadowania. |
Zwroty | |
---|---|
boolean | true , jeśli metoda testowa powinna zostać uruchomiona, false w przeciwnym razie |
powinien biegać
public boolean shouldRun (String packageName, Class<?> classObj, Method method)
Sprawdź, czy element posiadający adnotację przechodzi przez filtr
Parametry | |
---|---|
packageName | String : nazwa pakietu metody |
classObj | Class : klasa metody |
method | Method : metoda testowa |
Zwroty | |
---|---|
boolean | true , jeśli metoda testowa powinna zostać uruchomiona, false w przeciwnym razie |
powinienTestRun
public boolean shouldTestRun (AnnotatedElement annotatedElement)
Sprawdź, czy element posiadający adnotację przechodzi przez filtr
Parametry | |
---|---|
annotatedElement | AnnotatedElement : element do filtrowania |
Zwroty | |
---|---|
boolean | true, jeśli test powinien zostać uruchomiony, false w przeciwnym razie |
Pomocnik filtra testowego
public class TestFilterHelper
extends Object
Obiekt Java.lang.Object | |
↳ | com.android.tradefed.util.TestFilterHelper |
Klasa pomocnicza do testów filtrowania
Streszczenie
Konstruktorzy publiczni | |
---|---|
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) |
Metody publiczne | |
---|---|
void | addAllExcludeAnnotation ( notAnnotations) addAllExcludeAnnotation ( notAnnotations) Dodaje adnotację |
void | addAllExcludeFilters ( filters) addAllExcludeFilters ( filters) Dodaje |
void | addAllIncludeAnnotation ( annotations) addAllIncludeAnnotation ( annotations) Dodaje |
void | addAllIncludeFilters ( filters) addAllIncludeFilters ( filters) Dodaje |
void | addExcludeAnnotation (String notAnnotation) Dodaje adnotację wykluczającą test do uruchomienia |
void | addExcludeFilter (String filter) Dodaje filtr określający, które testy należy wykluczyć |
void | addIncludeAnnotation (String annotation) Dodaje adnotację obejmującą test do uruchomienia |
void | addIncludeFilter (String filter) Dodaje filtr określający, które testy należy uwzględnić |
void | clearExcludeAnnotations () |
void | clearExcludeFilters () |
void | clearIncludeAnnotations () |
void | clearIncludeFilters () |
getExcludeAnnotation () | |
getExcludeFilters () | |
getIncludeAnnotation () | |
getIncludeFilters () | |
boolean | shouldRun (Description desc, extraJars) shouldRun (Description desc, extraJars) Sprawdź, czy element posiadający adnotację przechodzi przez filtr |
boolean | shouldRun (String packageName, Class<?> classObj, Method method) Sprawdź, czy element posiadający adnotację przechodzi przez filtr |
boolean | shouldTestRun (AnnotatedElement annotatedElement) Sprawdź, czy element posiadający adnotację przechodzi przez filtr |
Konstruktorzy publiczni
Pomocnik filtra testowego
public TestFilterHelper ()
Pomocnik filtra testowego
public TestFilterHelper (includeFilters, excludeFilters, includeAnnotation, excludeAnnotation)
Parametry | |
---|---|
includeFilters | |
excludeFilters | |
includeAnnotation | |
excludeAnnotation |
Metody publiczne
addAllExcludeAdnotacja
public void addAllExcludeAnnotation (notAnnotations)
Dodaje adnotację ERROR(/Set)
wykluczającą test do uruchomienia
Parametry | |
---|---|
notAnnotations |
addAllExcludeFilters
public void addAllExcludeFilters (filters)
Dodaje ERROR(/Set)
filtrów, z których testy mają zostać wykluczone.
Parametry | |
---|---|
filters |
addAllIncludeAdnotacja
public void addAllIncludeAnnotation (annotations)
Dodaje ERROR(/Set)
dołączonej adnotacji do testu, który ma zostać uruchomiony
Parametry | |
---|---|
annotations |
dodajAllIncludeFilters
public void addAllIncludeFilters (filters)
Dodaje ERROR(/Set)
filtrów, które należy uwzględnić w testach
Parametry | |
---|---|
filters |
dodajWykluczAdnotację
public void addExcludeAnnotation (String notAnnotation)
Dodaje adnotację wykluczającą test do uruchomienia
Parametry | |
---|---|
notAnnotation | String |
dodajWykluczFiltr
public void addExcludeFilter (String filter)
Dodaje filtr określający, które testy należy wykluczyć
Parametry | |
---|---|
filter | String |
dodajIncludeAdnotację
public void addIncludeAnnotation (String annotation)
Dodaje adnotację obejmującą test do uruchomienia
Parametry | |
---|---|
annotation | String |
dodajIncludeFilter
public void addIncludeFilter (String filter)
Dodaje filtr określający, które testy należy uwzględnić
Parametry | |
---|---|
filter | String |
wyczyśćWykluczAdnotacje
public void clearExcludeAnnotations ()
wyczyśćWykluczFiltry
public void clearExcludeFilters ()
wyczyśćDołączAdnotacje
public void clearIncludeAnnotations ()
wyczyśćIncludeFilters
public void clearIncludeFilters ()
pobierzWykluczAdnotację
publicgetExcludeAnnotation ()
Zwroty | |
---|---|
getExcludeFilters
publicgetExcludeFilters ()
Zwroty | |
---|---|
pobierzIncludeAdnotację
publicgetIncludeAnnotation ()
Zwroty | |
---|---|
pobierzIncludeFilters
publicgetIncludeFilters ()
Zwroty | |
---|---|
powinien biegać
public boolean shouldRun (Description desc,extraJars)
Sprawdź, czy element posiadający adnotację przechodzi przez filtr
Parametry | |
---|---|
desc | Description : Description opisujący test. |
extraJars | ERROR(/File) wskazujących dodatkowe słoiki do załadowania. |
Zwroty | |
---|---|
boolean | true , jeśli metoda testowa powinna zostać uruchomiona, false w przeciwnym razie |
powinien biegać
public boolean shouldRun (String packageName, Class<?> classObj, Method method)
Sprawdź, czy element posiadający adnotację przechodzi przez filtr
Parametry | |
---|---|
packageName | String : nazwa pakietu metody |
classObj | Class : klasa metody |
method | Method : metoda testowa |
Zwroty | |
---|---|
boolean | true , jeśli metoda testowa powinna zostać uruchomiona, false w przeciwnym razie |
powinienTestRun
public boolean shouldTestRun (AnnotatedElement annotatedElement)
Sprawdź, czy element posiadający adnotację przechodzi przez filtr
Parametry | |
---|---|
annotatedElement | AnnotatedElement : element do filtrowania |
Zwroty | |
---|---|
boolean | true, jeśli test powinien zostać uruchomiony, false w przeciwnym razie |