TestFilterHelper
public class TestFilterHelper
extends Object
java.lang.객체 | |
↳ | com.android.tradefed.util.TestFilterHelper |
테스트 필터링을 위한 헬퍼 클래스
요약
공개 생성자 | |
---|---|
TestFilterHelper () | |
TestFilterHelper ( includeFilters, excludeFilters, includeAnnotation, excludeAnnotation) TestFilterHelper ( includeFilters, excludeFilters, includeAnnotation, excludeAnnotation) TestFilterHelper ( includeFilters, excludeFilters, includeAnnotation, excludeAnnotation) TestFilterHelper ( includeFilters, excludeFilters, includeAnnotation, excludeAnnotation) TestFilterHelper ( includeFilters, excludeFilters, includeAnnotation, excludeAnnotation) |
공개 방법 | |
---|---|
void | addAllExcludeAnnotation ( notAnnotations) addAllExcludeAnnotation ( notAnnotations) 실행할 테스트의 제외 주석 |
void | addAllExcludeFilters ( filters) addAllExcludeFilters ( filters) 제외할 테스트 필터의 |
void | addAllIncludeAnnotation ( annotations) addAllIncludeAnnotation ( annotations) 실행할 테스트의 주석 포함 |
void | addAllIncludeFilters ( filters) addAllIncludeFilters ( filters) 포함할 테스트 필터의 |
void | addExcludeAnnotation (String notAnnotation) 실행할 테스트의 제외 주석을 추가합니다. |
void | addExcludeFilter (String filter) 제외할 테스트 필터를 추가합니다. |
void | addIncludeAnnotation (String annotation) 실행할 테스트의 포함 주석을 추가합니다. |
void | addIncludeFilter (String filter) 포함할 테스트에 대한 필터를 추가합니다. |
void | clearExcludeAnnotations () |
void | clearExcludeFilters () |
void | clearIncludeAnnotations () |
void | clearIncludeFilters () |
getExcludeAnnotation () | |
getExcludeFilters () | |
getIncludeAnnotation () | |
getIncludeFilters () | |
boolean | shouldRun (Description desc, extraJars) shouldRun (Description desc, extraJars) 주석이 있는 요소가 필터를 통과하는지 확인 |
boolean | shouldRun (String packageName, Class<?> classObj, Method method) 주석이 있는 요소가 필터를 통과하는지 확인 |
boolean | shouldTestRun (AnnotatedElement annotatedElement) 주석이 있는 요소가 필터를 통과하는지 확인 |
공개 생성자
TestFilterHelper
public TestFilterHelper ()
TestFilterHelper
public TestFilterHelper (includeFilters, excludeFilters, includeAnnotation, excludeAnnotation)
매개변수 | |
---|---|
includeFilters | |
excludeFilters | |
includeAnnotation | |
excludeAnnotation |
공개 방법
addAllExclude 주석
public void addAllExcludeAnnotation (notAnnotations)
실행할 테스트의 제외 주석 ERROR(/Set)
추가
매개변수 | |
---|---|
notAnnotations |
addAllExcludeFilters
public void addAllExcludeFilters (filters)
제외할 테스트 필터의 ERROR(/Set)
추가합니다.
매개변수 | |
---|---|
filters |
addAllInclude 주석
public void addAllIncludeAnnotation (annotations)
실행할 테스트의 주석 포함 ERROR(/Set)
추가
매개변수 | |
---|---|
annotations |
addAllIncludeFilters
public void addAllIncludeFilters (filters)
포함할 테스트 필터의 ERROR(/Set)
추가
매개변수 | |
---|---|
filters |
추가 제외 주석
public void addExcludeAnnotation (String notAnnotation)
실행할 테스트의 제외 주석을 추가합니다.
매개변수 | |
---|---|
notAnnotation | String |
추가 제외 필터
public void addExcludeFilter (String filter)
제외할 테스트 필터를 추가합니다.
매개변수 | |
---|---|
filter | String |
추가 포함 주석
public void addIncludeAnnotation (String annotation)
실행할 테스트의 포함 주석을 추가합니다.
매개변수 | |
---|---|
annotation | String |
추가 포함 필터
public void addIncludeFilter (String filter)
포함할 테스트에 대한 필터를 추가합니다.
매개변수 | |
---|---|
filter | String |
clearExcludeAnnotations
public void clearExcludeAnnotations ()
제외 필터 지우기
public void clearExcludeFilters ()
clearInclude 주석
public void clearIncludeAnnotations ()
포함 필터 지우기
public void clearIncludeFilters ()
getExcludeAnnotation
publicgetExcludeAnnotation ()
보고 | |
---|---|
getExcludeFilters
publicgetExcludeFilters ()
보고 | |
---|---|
getInclude 주석
publicgetIncludeAnnotation ()
보고 | |
---|---|
getIncludeFilters
publicgetIncludeFilters ()
보고 | |
---|---|
shouldRun
public boolean shouldRun (Description desc,extraJars)
주석이 있는 요소가 필터를 통과하는지 확인
매개변수 | |
---|---|
desc | Description : 테스트를 설명하는 Description 입니다. |
extraJars | ERROR(/File) 목록입니다. |
보고 | |
---|---|
boolean | 테스트 메서드를 실행해야 하는 경우 true, 그렇지 않은 경우 false |
shouldRun
public boolean shouldRun (String packageName, Class<?> classObj, Method method)
주석이 있는 요소가 필터를 통과하는지 확인
매개변수 | |
---|---|
packageName | String : 메소드의 패키지 이름 |
classObj | Class : 메소드의 클래스 |
method | Method : 시험방법 |
보고 | |
---|---|
boolean | 테스트 메서드를 실행해야 하는 경우 true, 그렇지 않은 경우 false |
shouldTestRun
public boolean shouldTestRun (AnnotatedElement annotatedElement)
주석이 있는 요소가 필터를 통과하는지 확인
매개변수 | |
---|---|
annotatedElement | AnnotatedElement : 필터링할 요소 |
보고 | |
---|---|
boolean | 테스트를 실행해야 하는 경우 true, 그렇지 않은 경우 false |