테스트 설명 파일
public class TestDescriptionsFile
extends Object
java.lang.객체 | |
↳ | com.android.tradefed.result.TestDescriptionsFile |
TestDescription 목록을 테스트 파일로 마샬링 및 언마샬링하기 위한 유틸리티 클래스입니다.
지연 로딩으로 파일 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 |
공개 방법
addAll
public void addAll (test)
매개변수 | |
---|---|
test |
fromTests
public static TestDescriptionsFile fromTests (shardTests)
매개변수 | |
---|---|
shardTests |
보고 | |
---|---|
TestDescriptionsFile |
getFile
public File getFile ()
테스트의 테스트 파일 표현을 반환합니다. 필요한 경우 빌드합니다.
테스트는 고유하고 정렬됩니다.
보고 | |
---|---|
File |
getTests
publicgetTests ()
저장된 테스트 사본을 반환합니다. 필요한 경우 테스트 파일에서 빌드합니다.
보고 | |
---|---|
테스트 파일 채우기
public void populateTestFile (File testfile)
주어진 파일을 현재 테스트로 채웁니다.
매개변수 | |
---|---|
testfile | File |
크기
public int size ()
보고 | |
---|---|
int |