SuiteTestFilter
public class SuiteTestFilter
extends Object
java.lang.Object | |
? | com.android.tradefed.testtype.suite.SuiteTestFilter |
Rappresenta un filtro per l'inclusione e l'esclusione dei test.
Riepilogo
Costruttori pubblici | |
---|---|
SuiteTestFilter (String abi, String name, String test) Crea un nuovo | |
SuiteTestFilter (Integer shardIndex, String abi, String name, String test) Crea un nuovo |
Metodi pubblici | |
---|---|
static SuiteTestFilter | createFrom (String filter) Costruisce una nuova |
boolean | equals (Object obj) |
String | getAbi () |
String | getBaseName () Restituisce il nome di base del modulo senza alcuna parametrizzazione. |
String | getName () |
String | getParameterName () Se il modulo è parametrizzato, restituisce il valore del parametro. |
Integer | getShardIndex () Restituisce l'indice shard del test o null se non specificato. |
String | getTest () |
int | hashCode () |
String | toString () Restituisce una rappresentazione String di questo filtro. |
Costruttori pubblici
SuiteTestFilter
public SuiteTestFilter (String abi, String name, String test)
Crea un nuovo SuiteTestFilter
dalle parti indicate.
Parametri | |
---|---|
abi | String : L'ABI deve essere supportata AbiUtils#isAbiSupportedByCompatibility(String) |
name | String : il nome del modulo |
test | String : Il test di identificazione per esempio |
SuiteTestFilter
public SuiteTestFilter (Integer shardIndex, String abi, String name, String test)
Crea un nuovo SuiteTestFilter
dalle parti indicate.
Parametri | |
---|---|
shardIndex | Integer |
abi | String : L'ABI deve essere supportata AbiUtils#isAbiSupportedByCompatibility(String) |
name | String : il nome del modulo |
test | String : Il test di identificazione per esempio |
Metodi pubblici
creareDa
public static SuiteTestFilter createFrom (String filter)
Costruisce una nuova SuiteTestFilter
dalla stringa data. I filtri possono essere in una delle quattro forme, l'istanza verrà inizializzata come; -"name" -> abi = null, name = "name", test = null -"name" "test..." -> abi = null, name = "name", test = "test..." - "abi" "nome" -> abi = "abi", nome = "nome", test = null - "abi" "nome" "test..." -> abi = "abi", nome = "nome", prova = "prova..."
L'identificatore del test può contenere più parti, ad es. test parametrizzati.
Parametri | |
---|---|
filter | String : il filtro per analizzare |
ritorna | |
---|---|
SuiteTestFilter | il SuiteTestFilter |
è uguale a
public boolean equals (Object obj)
Parametri | |
---|---|
obj | Object |
ritorna | |
---|---|
boolean |
getAbi
public String getAbi ()
ritorna | |
---|---|
String | l'abi di questo filtro o null se non specificato. |
getBaseName
public String getBaseName ()
Restituisce il nome di base del modulo senza alcuna parametrizzazione. In caso contrario parametrizzato, tornerà getName()
;
ritorna | |
---|---|
String |
getName
public String getName ()
ritorna | |
---|---|
String | il nome del modulo di questo filtro o null se non specificato. |
getParameterName
public String getParameterName ()
Se il modulo è parametrizzato, restituisce il valore del parametro. Nullo se non parametrizzato.
ritorna | |
---|---|
String |
getShardIndex
public Integer getShardIndex ()
Restituisce l'indice shard del test o null se non specificato.
ritorna | |
---|---|
Integer |
getTest
public String getTest ()
ritorna | |
---|---|
String | l'identificatore di test di questo filtro o null se non specificato. |
codice hash
public int hashCode ()
ritorna | |
---|---|
int |
accordare
public String toString ()
Restituisce una rappresentazione String di questo filtro. Questa funzione è l'inverso di createFrom(String)
.
Per un filtro valido f;
new TestFilter(f).toString().equals(f)
ritorna | |
---|---|
String |