SuiteTestFilter
public
class
SuiteTestFilter
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.suite.SuiteTestFilter |
Representa um filtro para incluir e excluir testes.
Resumo
Construtores públicos | |
|---|---|
SuiteTestFilter(Integer shardIndex, String abi, String name, String test)
Cria um novo |
|
SuiteTestFilter(String abi, String name, String test)
Cria um novo |
|
Métodos públicos | |
|---|---|
static
SuiteTestFilter
|
createFrom(String filter)
Cria uma nova |
boolean
|
equals(Object obj)
|
String
|
getAbi()
|
String
|
getBaseName()
Retorna o nome básico do módulo sem nenhuma parametrização. |
String
|
getModuleId()
|
String
|
getName()
|
String
|
getParameterName()
Se o módulo for parametrizado, ele vai retornar o valor do parâmetro. |
Integer
|
getShardIndex()
Retorna o índice de fragmento do teste ou nulo se não for especificado. |
String
|
getTest()
|
int
|
hashCode()
|
String
|
toString()
Retorna uma representação de string desse filtro. |
Construtores públicos
SuiteTestFilter
public SuiteTestFilter (Integer shardIndex,
String abi,
String name,
String test)Cria um novo SuiteTestFilter com as partes fornecidas.
| Parâmetros | |
|---|---|
shardIndex |
Integer |
abi |
String: a ABI precisa ter suporte AbiUtils.isAbiSupportedByCompatibility(String) |
name |
String: o nome do módulo |
test |
String: o identificador do teste, por exemplo, |
SuiteTestFilter
public SuiteTestFilter (String abi,
String name,
String test)Cria um novo SuiteTestFilter com as partes fornecidas.
| Parâmetros | |
|---|---|
abi |
String: a ABI precisa ter suporte AbiUtils.isAbiSupportedByCompatibility(String) |
name |
String: o nome do módulo |
test |
String: o identificador do teste, por exemplo, |
Métodos públicos
createFrom
public static SuiteTestFilter createFrom (String filter)
Cria uma nova SuiteTestFilter com base na string fornecida. Os filtros podem estar em um dos quatro
formatos, a instância será inicializada como: -"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..."
O identificador de teste pode conter várias partes, por exemplo, testes parametrizados.
| Parâmetros | |
|---|---|
filter |
String: o filtro a ser analisado |
| Retorna | |
|---|---|
SuiteTestFilter |
o SuiteTestFilter |
equals
public boolean equals (Object obj)
| Parâmetros | |
|---|---|
obj |
Object |
| Retorna | |
|---|---|
boolean |
|
getAbi
public String getAbi ()
| Retorna | |
|---|---|
String |
a abi desse filtro ou nulo, se não especificado. |
getBaseName
public String getBaseName ()
Retorna o nome básico do módulo sem nenhuma parametrização. Se não for parametrizado, ele
vai retornar getName().
| Retorna | |
|---|---|
String |
|
getModuleId
public String getModuleId ()
| Retorna | |
|---|---|
String |
|
getName
public String getName ()
| Retorna | |
|---|---|
String |
O nome do módulo desse filtro ou nulo se não for especificado. |
getParameterName
public String getParameterName ()
Se o módulo for parametrizado, ele vai retornar o valor do parâmetro. Nulo se não for parametrizado.
| Retorna | |
|---|---|
String |
|
getShardIndex
public Integer getShardIndex ()
Retorna o índice de fragmento do teste ou nulo se não for especificado.
| Retorna | |
|---|---|
Integer |
|
getTest
public String getTest ()
| Retorna | |
|---|---|
String |
O identificador de teste desse filtro ou nulo, se não especificado. |
hashCode
public int hashCode ()
| Retorna | |
|---|---|
int |
|
toString
public String toString ()
Retorna uma representação de string desse filtro. Essa função é o inverso de createFrom(String).
Para um filtro válido f:
new TestFilter(f).toString().equals(f)
| Retorna | |
|---|---|
String |
|