测试描述文件
public class TestDescriptionsFile
extends Object
java.lang.Object | |
↳ | com.android.tradefed.result.TestDescriptionsFile |
用于将 TestDescriptions 列表编组和解组到测试文件的实用程序类。
旨在通过延迟加载来缓存和最小化文件 I/O。
不是线程安全的。
概括
公共构造函数 | |
---|---|
TestDescriptionsFile () 创建一个空的测试描述列表。 | |
TestDescriptionsFile (File file) 从文件内容创建测试描述列表。 |
公共方法 | |
---|---|
void | add ( TestDescription test) |
void | addAll ( test) addAll ( test) |
static TestDescriptionsFile | fromTests ( shardTests) fromTests ( shardTests) |
File | getFile () 返回测试的测试文件表示 - 如有必要,构建它。 |
getTests () 返回存储的测试副本 - 如有必要,从测试文件构建。 | |
void | populateTestFile (File testfile) 用当前测试填充给定文件。 |
void | remove ( TestDescription test) |
int | size () |
公共构造函数
测试描述文件
public TestDescriptionsFile ()
创建一个空的测试描述列表。
测试描述文件
public TestDescriptionsFile (File file)
从文件内容创建测试描述列表。
参数 | |
---|---|
file | File |
公共方法
全部添加
public void addAll (test)
参数 | |
---|---|
test |
获取文件
public File getFile ()
返回测试的测试文件表示 - 如有必要,构建它。
测试将是唯一的和排序的。
退货 | |
---|---|
File |
获取测试
publicgetTests ()
返回存储的测试副本 - 如有必要,从测试文件构建。
退货 | |
---|---|
填充测试文件
public void populateTestFile (File testfile)
用当前测试填充给定文件。
参数 | |
---|---|
testfile | File |
尺寸
public int size ()
退货 | |
---|---|
int |