Test açıklaması
public final class TestDescription
extends Object
java.lang.Object |
↳ | com.android.tradefed.result.TestDescription |
Bir test senaryosu hakkındaki bilgileri temsil eden sınıf.
Özet
Kamu inşaatçıları |
---|
TestDescription (String className, String testName) Oluşturucu |
TestDescription (String className, String testName, Annotation... annotations) Oluşturucu |
TestDescription (String className, String testName, annotations) TestDescription (String className, String testName, annotations) Oluşturucu |
Alanlar
PARAMETERIZED_TEST_REGEX
public static final Pattern PARAMETERIZED_TEST_REGEX
Parametrelendirilmiş yöntem için normal ifade. Örneğin: testAdı[0]
Kamu inşaatçıları
Test açıklaması
public TestDescription (String className,
String testName)
Oluşturucu
Parametreler |
---|
className | String : Testin yapıldığı sınıfın adı. |
testName | String : Test (yöntem) adı. |
Test açıklaması
public TestDescription (String className,
String testName,
Annotation... annotations)
Oluşturucu
Parametreler |
---|
className | String : Testin yapıldığı sınıfın adı. |
testName | String : Test (yöntem) adı. |
annotations | Annotation : Test senaryosuyla ilişkili ERROR(/Annotation) listesi. |
Test açıklaması
public TestDescription (String className,
String testName,
annotations)
Oluşturucu
Parametreler |
---|
className | String : Testin yapıldığı sınıfın adı. |
testName | String : Test (yöntem) adı. |
annotations | : Test senaryosuyla 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 gösterimi. Beklenen format: sınıf adı#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ündeki ek açıklama veya mevcut değilse null |
getEk açıklamalar
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 ()
Testin adını herhangi bir parametre olmadan döndürür (eğer parametreli bir yöntemse).
hash kodu
public int hashCode ()
toString
public String toString ()