TestDescriptionsFile

public class TestDescriptionsFile
extends Object

java.lang.Object
   ↳ com.android.tradefed.result.TestDescriptionsFile


Klasa narzędziowa do przekształcania listy TestDescription w plik testowy i odwrotnie.

Ma na celu buforowanie i minimalizowanie operacji wejścia/wyjścia plików przez leniwe ładowanie.

NIE jest bezpieczna dla wątków.

Podsumowanie

Konstruktory publiczne

TestDescriptionsFile()

Utwórz pustą listę opisów testów.

TestDescriptionsFile(File file)

Utwórz listę opisów testów na podstawie zawartości pliku.

Metody publiczne

void add(TestDescription test)
void addAll(List<TestDescription> test)
static TestDescriptionsFile fromTests(List<TestDescription> shardTests)
File getFile()

Zwróć reprezentację pliku testowego testów – w razie potrzeby utwórz ją.

List<TestDescription> getTests()

Zwróć kopię zapisanych testów – w razie potrzeby utwórz ją na podstawie pliku testowego.

void populateTestFile(File testfile)

Wypełnia podany plik bieżącymi testami.

void remove(TestDescription test)
int size()

Konstruktory publiczne

TestDescriptionsFile

public TestDescriptionsFile ()

Utwórz pustą listę opisów testów.

TestDescriptionsFile

public TestDescriptionsFile (File file)

Utwórz listę opisów testów na podstawie zawartości pliku.

Parametry
file File

Metody publiczne

dodaj

public void add (TestDescription test)

Parametry
test TestDescription

addAll

public void addAll (List<TestDescription> test)

Parametry
test List

fromTests

public static TestDescriptionsFile fromTests (List<TestDescription> shardTests)

Parametry
shardTests List

Zwraca
TestDescriptionsFile

getFile

public File getFile ()

Zwróć reprezentację pliku testowego testów – w razie potrzeby utwórz ją.

Testy będą unikalne i posortowane.

Zwraca
File

getTests

public List<TestDescription> getTests ()

Zwróć kopię zapisanych testów – w razie potrzeby utwórz ją na podstawie pliku testowego.

Zwraca
List<TestDescription>

populateTestFile

public void populateTestFile (File testfile)

Wypełnia podany plik bieżącymi testami.

Parametry
testfile File

usuń

public void remove (TestDescription test)

Parametry
test TestDescription

rozmiar

public int size ()

Zwraca
int