Test açıklaması
public final class TestDescription
extends Object
java.lang.Nesne |
↳ | com.android.tradefed.result.TestDescription |
Bir test durumu hakkındaki bilgileri temsil eden sınıf.
Özet
Alanlar
PARAMETERIZED_TEST_REGEX
public static final Pattern PARAMETERIZED_TEST_REGEX
Parametreli yöntem için normal ifade. Örneğin: testAdı[0]
Kamu inşaatçıları
Test açıklaması
public TestDescription (String className,
String testName)
yapıcı
parametreler |
---|
className | String : Testi yapan sınıfın adı. |
testName | String : Test (yöntem) adı. |
Test açıklaması
public TestDescription (String className,
String testName,
Annotation... annotations)
yapıcı
parametreler |
---|
className | String : Testi yapan sınıfın adı. |
testName | String : Test (yöntem) adı. |
annotations | Annotation : Test senaryosu ile ilişkili ERROR(/Annotation) listesi. |
Test açıklaması
public TestDescription (String className,
String testName,
annotations)
yapıcı
parametreler |
---|
className | String : Testi yapan sınıfın adı. |
testName | String : Test (yöntem) adı. |
annotations | : Test senaryosu ile ilişkili ERROR(/Annotation) koleksiyonu. |
Genel yöntemler
karşılaştırmak
public int compareTo (TestDescription o)
parametreler |
---|
o | TestDescription |
eşittir
public boolean equals (Object obj)
fromString
public static TestDescription fromString (String data)
toString()
} temsilinden bir TestDescription
oluşturun.
parametreler |
---|
data | String : String temsili. Beklenen biçim: sınıfadı#yöntem adı |
getAnnotation
public T getAnnotation (Class<T> annotationType)
parametreler |
---|
annotationType | Class |
İadeler |
---|
T | bu açıklama düğümüne eklenen annotationType türünün ek açıklaması veya yoksa null |
getAnnotations
public getAnnotations ()
İadeler |
---|
| bu açıklama düğümüne eklenen tüm ek açıklamalar |
getClassName
public String getClassName ()
Testin tam nitelikli sınıf adını döndürür.
getTestName
public String getTestName ()
Parametreli test ise, parametrelerle birlikte testin adını döndürür. Parametreli bir test değilse normal test adını döndürür.
getTestNameWithoutParams
public String getTestNameWithoutParams ()
Herhangi bir parametre olmadan testin adını döndürür (eğer parametreleştirilmiş bir yöntemse).
hash kodu
public int hashCode ()
toString
public String toString ()