TestDescriptionsFile
public
class
TestDescriptionsFile
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.result.TestDescriptionsFile |
A utility class for marshalling and unmarshalling a list of TestDescriptions to a test file.
Intended to cache and minimize file I/O by lazy loading.
NOT thread safe.
Summary
Public constructors | |
|---|---|
TestDescriptionsFile()
Create an empty test description list. |
|
TestDescriptionsFile(File file)
Create a test description list from the file contents. |
|
Public methods | |
|---|---|
void
|
add(TestDescription test)
|
void
|
addAll(
|
static
TestDescriptionsFile
|
fromTests(
|
File
|
getFile()
Return the test file representation of the tests - building it if necessary. |
|
getTests()
Return a copy of the tests stored - building from test file if necessary. |
void
|
populateTestFile(File testfile)
Populates the given file with the current tests. |
void
|
remove(TestDescription test)
|
int
|
size()
|
Public constructors
TestDescriptionsFile
public TestDescriptionsFile ()
Create an empty test description list.
TestDescriptionsFile
public TestDescriptionsFile (File file)
Create a test description list from the file contents.
| Parameters | |
|---|---|
file |
File |
Public methods
addAll
public void addAll (test)
| Parameters | |
|---|---|
test |
|
fromTests
public static TestDescriptionsFile fromTests (shardTests)
| Parameters | |
|---|---|
shardTests |
|
| Returns | |
|---|---|
TestDescriptionsFile |
|
getFile
public File getFile ()
Return the test file representation of the tests - building it if necessary.
Tests will be unique and sorted.
| Returns | |
|---|---|
File |
|
getTests
publicgetTests ()
Return a copy of the tests stored - building from test file if necessary.
| Returns | |
|---|---|
|
|
populateTestFile
public void populateTestFile (File testfile)
Populates the given file with the current tests.
| Parameters | |
|---|---|
testfile |
File |
size
public int size ()
| Returns | |
|---|---|
int |
|