Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
TestDescription
public
final
class
TestDescription
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.result.TestDescription
|
Classe che rappresenta le informazioni su uno scenario di test.
Riepilogo
Costruttori pubblici |
TestDescription(String className, String testName)
Costruttore
|
TestDescription(String className, String testName, Annotation... annotations)
Costruttore
|
TestDescription(String className, String testName, annotations)
Costruttore
|
Campi
REGEX_TEST_PARAMETERIZZATO
public static final Pattern PARAMETERIZED_TEST_REGEX
Espressione regolare per il metodo parametrizzato. Ad esempio: testName[0]
Costruttori pubblici
TestDescription
public TestDescription (String className,
String testName)
Costruttore
Parametri |
className |
String : il nome della classe che ospita il test. |
testName |
String : il nome del test (metodo). |
TestDescription
public TestDescription (String className,
String testName,
Annotation... annotations)
Costruttore
Parametri |
className |
String : il nome della classe che ospita il test. |
testName |
String : il nome del test (metodo). |
annotations |
Annotation : elenco di ERROR(/Annotation) associati al caso di test. |
TestDescription
public TestDescription (String className,
String testName,
annotations)
Costruttore
Parametri |
className |
String : il nome della classe che ospita il test. |
testName |
String : il nome del test (metodo). |
annotations |
: raccolta di ERROR(/Annotation) associata al caso di test. |
Metodi pubblici
compareTo
public int compareTo (TestDescription o)
Parametri |
o |
TestDescription |
uguale
public boolean equals (Object obj)
fromString
public static TestDescription fromString (String data)
Crea un TestDescription
dalla sua rappresentazione toString()
}.
Parametri |
data |
String : la rappresentazione della stringa. Formato previsto: classname#methodname |
Ritorni |
TestDescription |
TestDescription o null se non è stato possibile analizzarlo |
getAnnotation
public T getAnnotation (Class<T> annotationType)
Parametri |
annotationType |
Class |
Ritorni |
T |
l'annotazione di tipo annotationType associata a questo nodo di descrizione oppure
null se non esiste |
getAnnotations
public getAnnotations ()
Ritorni |
|
tutte le annotazioni associate a questo nodo di descrizione |
getClassName
public String getClassName ()
Restituisce il nome di classe completo del test.
getTestName
public String getTestName ()
Restituisce il nome del test con i parametri, se si tratta di un test parametrizzato. Restituisce il
nome normale del test se non è un test con parametri.
getTestNameWithoutParams
public String getTestNameWithoutParams ()
Restituisce il nome del test senza parametri (se è un metodo con parametri).
hashCode
public int hashCode ()
toString
public String toString ()
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2024-11-08 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2024-11-08 UTC."],[],[]]