테스트설명파일
public class TestDescriptionsFile
extends Object
java.lang.Object | |
↳ | 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 |
공개 메소드
모두 추가
public void addAll (test)
매개변수 | |
---|---|
test |
테스트에서
public static TestDescriptionsFile fromTests (shardTests)
매개변수 | |
---|---|
shardTests |
보고 | |
---|---|
TestDescriptionsFile |
파일 가져오기
public File getFile ()
테스트의 테스트 파일 표현을 반환합니다. 필요한 경우 빌드합니다.
테스트는 고유하고 정렬됩니다.
보고 | |
---|---|
File |
getTests
publicgetTests ()
저장된 테스트의 복사본을 반환합니다. 필요한 경우 테스트 파일에서 빌드합니다.
보고 | |
---|---|
채우기테스트파일
public void populateTestFile (File testfile)
현재 테스트로 지정된 파일을 채웁니다.
매개변수 | |
---|---|
testfile | File |
크기
public int size ()
보고 | |
---|---|
int |