SuiteTestFilter
public
class
SuiteTestFilter
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.suite.SuiteTestFilter |
Represents a filter for including and excluding tests.
Podsumowanie
Konstruktory publiczne | |
|---|---|
SuiteTestFilter(Integer shardIndex, String abi, String name, String test)
Tworzy nowy filtr |
|
SuiteTestFilter(String abi, String name, String test)
Tworzy nowy filtr |
|
Metody publiczne | |
|---|---|
static
SuiteTestFilter
|
createFrom(String filter)
Tworzy nowy filtr |
boolean
|
equals(Object obj)
|
String
|
getAbi()
|
String
|
getBaseName()
Zwraca podstawową nazwę modułu bez żadnych parametrów. |
String
|
getModuleId()
|
String
|
getName()
|
String
|
getParameterName()
Jeśli moduł jest sparametryzowany, zwraca wartość parametru. |
Integer
|
getShardIndex()
Zwraca indeks fragmentu testu lub wartość null, jeśli nie został określony. |
String
|
getTest()
|
int
|
hashCode()
|
String
|
toString()
Zwraca reprezentację tego filtra w postaci ciągu. |
Konstruktory publiczne
SuiteTestFilter
public SuiteTestFilter (Integer shardIndex,
String abi,
String name,
String test)Tworzy nowy filtr SuiteTestFilter na podstawie podanych części.
| Parametry | |
|---|---|
shardIndex |
Integer |
abi |
String: ABI musi być obsługiwane AbiUtils.isAbiSupportedByCompatibility(String) |
name |
String: nazwa modułu |
test |
String: identyfikator testu, np. |
SuiteTestFilter
public SuiteTestFilter (String abi,
String name,
String test)Tworzy nowy filtr SuiteTestFilter na podstawie podanych części.
| Parametry | |
|---|---|
abi |
String: ABI musi być obsługiwane AbiUtils.isAbiSupportedByCompatibility(String) |
name |
String: nazwa modułu |
test |
String: identyfikator testu, np. |
Metody publiczne
createFrom
public static SuiteTestFilter createFrom (String filter)
Tworzy nowy filtr SuiteTestFilter na podstawie podanego ciągu. Filtry mogą mieć jedną z 4
postaci. Instancja zostanie zainicjowana jako: – "name" -> abi = null, name = "name", test = null
– "name" "test..." -> abi = null, name = „name”, test = „test...” – „abi” „name” -> abi =
„abi”, name = „name”, test = null – „abi” „name” „test...” -> abi = „abi”, name = „name”, test
= „test...”
Identyfikator testu może zawierać wiele części, np. testy sparametryzowane.
| Parametry | |
|---|---|
filter |
String: filtr do przeanalizowania |
| Zwraca | |
|---|---|
SuiteTestFilter |
SuiteTestFilter |
equals
public boolean equals (Object obj)
| Parametry | |
|---|---|
obj |
Object |
| Zwraca | |
|---|---|
boolean |
|
getAbi
public String getAbi ()
| Zwraca | |
|---|---|
String |
ABI tego filtra lub wartość null, jeśli nie została określona. |
getBaseName
public String getBaseName ()
Zwraca podstawową nazwę modułu bez żadnych parametrów. Jeśli nie jest sparametryzowany, to
zwróci getName();
| Zwraca | |
|---|---|
String |
|
getModuleId
public String getModuleId ()
| Zwraca | |
|---|---|
String |
|
getName
public String getName ()
| Zwraca | |
|---|---|
String |
nazwę modułu tego filtra lub wartość null, jeśli nie została określona. |
getParameterName
public String getParameterName ()
Jeśli moduł jest sparametryzowany, zwraca wartość parametru. Wartość null, jeśli nie jest sparametryzowany.
| Zwraca | |
|---|---|
String |
|
getShardIndex
public Integer getShardIndex ()
Zwraca indeks fragmentu testu lub wartość null, jeśli nie został określony.
| Zwraca | |
|---|---|
Integer |
|
getTest
public String getTest ()
| Zwraca | |
|---|---|
String |
identyfikator testu tego filtra lub wartość null, jeśli nie został określony. |
hashCode
public int hashCode ()
| Zwraca | |
|---|---|
int |
|
toString
public String toString ()
Zwraca reprezentację tego filtra w postaci ciągu. Ta funkcja jest odwrotnością funkcji SuiteTestFilter.createFrom(String).
W przypadku prawidłowego filtra f:
new TestFilter(f).toString().equals(f)
| Zwraca | |
|---|---|
String |
|