TestAçıklamalarıDosya
public class TestDescriptionsFile
extends Object
java.lang.Object | |
↳ | com.android.tradefed.result.TestDescriptionsFile |
TestDescriptions listesinin bir test dosyasında sıralanması ve sıralanmasının kaldırılması için bir yardımcı program sınıfı.
Tembel yükleme yoluyla dosya G/Ç'sini önbelleğe almak ve en aza indirmek için tasarlanmıştır.
İş parçacığı güvenli DEĞİLDİR.
Özet
Kamu inşaatçıları | |
---|---|
TestDescriptionsFile () Boş bir test açıklama listesi oluşturun. | |
TestDescriptionsFile (File file) Dosya içeriğinden bir test açıklama listesi oluşturun. |
Genel yöntemler | |
---|---|
void | add ( TestDescription test) |
void | addAll ( test) addAll ( test) |
static TestDescriptionsFile | fromTests ( shardTests) fromTests ( shardTests) |
File | getFile () Testlerin test dosyası temsilini döndürün; gerekirse oluşturun. |
getTests () Saklanan testlerin bir kopyasını döndürün - gerekirse test dosyasından oluşturun. | |
void | populateTestFile (File testfile) Verilen dosyayı geçerli testlerle doldurur. |
void | remove ( TestDescription test) |
int | size () |
Kamu inşaatçıları
TestAçıklamalarıDosya
public TestDescriptionsFile ()
Boş bir test açıklama listesi oluşturun.
TestAçıklamalarıDosya
public TestDescriptionsFile (File file)
Dosya içeriğinden bir test açıklama listesi oluşturun.
Parametreler | |
---|---|
file | File |
Genel yöntemler
hepsini ekle
public void addAll (test)
Parametreler | |
---|---|
test |
itibarenTestler
public static TestDescriptionsFile fromTests (shardTests)
Parametreler | |
---|---|
shardTests |
İadeler | |
---|---|
TestDescriptionsFile |
dosyayı al
public File getFile ()
Testlerin test dosyası temsilini döndürün; gerekirse oluşturun.
Testler benzersiz ve sıralı olacaktır.
İadeler | |
---|---|
File |
getTestler
publicgetTests ()
Saklanan testlerin bir kopyasını döndürün - gerekirse test dosyasından oluşturun.
İadeler | |
---|---|
TestDosyasını Doldur
public void populateTestFile (File testfile)
Verilen dosyayı geçerli testlerle doldurur.
Parametreler | |
---|---|
testfile | File |
boyut
public int size ()
İadeler | |
---|---|
int |