SuiteTestFilter
public class SuiteTestFilter
extends Object
java.lang.Object | |
↳ | com.android.tradefed.testtype.suite.SuiteTestFilter |
Reprezentuje filtr do uwzględniania i wykluczania testów.
Streszczenie
Konstruktorzy publiczni | |
---|---|
SuiteTestFilter (String abi, String name, String test) Tworzy nowy | |
SuiteTestFilter (Integer shardIndex, String abi, String name, String test) Tworzy nowy |
Metody publiczne | |
---|---|
static SuiteTestFilter | createFrom (String filter) Buduje nowy |
boolean | equals (Object obj) |
String | getAbi () |
String | getBaseName () Zwraca nazwę bazową modułu bez żadnej parametryzacji. |
String | getName () |
String | getParameterName () Jeśli moduł jest sparametryzowany, zwraca wartość parametru. |
Integer | getShardIndex () Zwraca indeks fragmentu testu lub null, jeśli nie został określony. |
String | getTest () |
int | hashCode () |
String | toString () Zwraca ciąg reprezentujący ten filtr. |
Konstruktorzy publiczni
SuiteTestFilter
public SuiteTestFilter (String abi, String name, String test)
Tworzy nowy SuiteTestFilter
z danej części.
Parametry | |
---|---|
abi | String : ABI musi być obsługiwana AbiUtils#isAbiSupportedByCompatibility(String) |
name | String : Nazwa modułu |
test | String : Test na przykład identyfikator |
SuiteTestFilter
public SuiteTestFilter (Integer shardIndex, String abi, String name, String test)
Tworzy nowy SuiteTestFilter
z danej części.
Parametry | |
---|---|
shardIndex | Integer |
abi | String : ABI musi być obsługiwana AbiUtils#isAbiSupportedByCompatibility(String) |
name | String : Nazwa modułu |
test | String : Test na przykład identyfikator |
Metody publiczne
utwórz z
public static SuiteTestFilter createFrom (String filter)
Buduje nowy SuiteTestFilter
z podanego łańcucha. Filtry mogą mieć jedną z czterech form, 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 analizowania |
Zwroty | |
---|---|
SuiteTestFilter | SuiteTestFilter |
równa się
public boolean equals (Object obj)
Parametry | |
---|---|
obj | Object |
Zwroty | |
---|---|
boolean |
getAbi
public String getAbi ()
Zwroty | |
---|---|
String | abi tego filtru lub null, jeśli nie określono. |
getBaseName
public String getBaseName ()
Zwraca nazwę bazową modułu bez żadnej parametryzacji. Jeśli nie parametryzowane, zwróci getName()
;
Zwroty | |
---|---|
String |
getName
public String getName ()
Zwroty | |
---|---|
String | nazwa modułu tego filtru lub null, jeśli nie określono. |
pobierzNazwęParametru
public String getParameterName ()
Jeśli moduł jest sparametryzowany, zwraca wartość parametru. Null, jeśli nie jest sparametryzowany.
Zwroty | |
---|---|
String |
getShardIndex
public Integer getShardIndex ()
Zwraca indeks fragmentu testu lub null, jeśli nie został określony.
Zwroty | |
---|---|
Integer |
pobierzTest
public String getTest ()
Zwroty | |
---|---|
String | identyfikator testowy tego filtru lub null, jeśli nie został określony. |
hashCode
public int hashCode ()
Zwroty | |
---|---|
int |
toString
public String toString ()
Zwraca ciąg reprezentujący ten filtr. Funkcja ta jest odwrotnością createFrom(String)
.
Dla prawidłowego filtra f;
new TestFilter(f).toString().equals(f)
Zwroty | |
---|---|
String |