TestDescriptionsDosyası
public class TestDescriptionsFile
extends Object
java.lang.Object | |
↳ | com.android.tradefed.result.TestDescriptionsFile |
TestDescriptions listesini bir test dosyasına sıralamak ve sıralamadan çıkarmak için bir yardımcı program sınıfı.
Gecikmeli yükleme yoluyla dosya G/Ç'yi önbelleğe almayı ve en aza indirmeyi amaçlar.
İplik güvenli DEĞİL.
Ö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 () Depolanan testlerin bir kopyasını getirin - gerekirse test dosyasından oluşturun. | |
void | populateTestFile (File testfile) Verilen dosyayı mevcut testlerle doldurur. |
void | remove ( TestDescription test) |
int | size () |
kamu inşaatçılar
TestDescriptionsDosyası
public TestDescriptionsFile ()
Boş bir test açıklama listesi oluşturun.
TestDescriptionsDosyası
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 |
Testlerden
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ıralanmış olacaktır.
İadeler | |
---|---|
File |
Testleri al
publicgetTests ()
Depolanan testlerin bir kopyasını getirin - gerekirse test dosyasından oluşturun.
İadeler | |
---|---|
test dosyasını doldur
public void populateTestFile (File testfile)
Verilen dosyayı mevcut testlerle doldurur.
parametreler | |
---|---|
testfile | File |
boyut
public int size ()
İadeler | |
---|---|
int |