TestFilterHelper
public
class
TestFilterHelper
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.TestFilterHelper |
테스트 필터링을 위한 도우미 클래스
요약
공개 생성자 | |
|---|---|
TestFilterHelper()
|
|
TestFilterHelper(
|
|
공개 메서드 | |
|---|---|
void
|
addAllExcludeAnnotation(
실행할 테스트의 제외 주석에 |
void
|
addAllExcludeFilters(
제외할 테스트의 필터 |
void
|
addAllIncludeAnnotation(
실행할 테스트의 include 주석의 |
void
|
addAllIncludeFilters(
포함할 테스트의 필터 |
void
|
addExcludeAnnotation(String notAnnotation)
실행할 테스트의 제외 주석을 추가합니다. |
void
|
addExcludeFilter(String filter)
제외할 테스트의 필터를 추가합니다. |
void
|
addIncludeAnnotation(String annotation)
실행할 테스트의 include 주석을 추가합니다. |
void
|
addIncludeFilter(String filter)
포함할 테스트의 필터를 추가합니다. |
void
|
clearExcludeAnnotations()
|
void
|
clearExcludeFilters()
|
void
|
clearIncludeAnnotations()
|
void
|
clearIncludeFilters()
|
|
getExcludeAnnotation()
|
|
getExcludeFilters()
|
|
getIncludeAnnotation()
|
|
getIncludeFilters()
|
boolean
|
shouldRun(Description desc,
주석이 있는 요소가 필터를 통과하는지 확인 |
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 |
|
공개 메서드
addAllExcludeAnnotation
public void addAllExcludeAnnotation (notAnnotations)
실행할 테스트의 제외 주석에 ERROR(/Set)를 추가합니다.
| 매개변수 | |
|---|---|
notAnnotations |
|
addAllExcludeFilters
public void addAllExcludeFilters (filters)
제외할 테스트의 필터 ERROR(/Set)를 추가합니다.
| 매개변수 | |
|---|---|
filters |
|
addAllIncludeAnnotation
public void addAllIncludeAnnotation (annotations)
실행할 테스트의 include 주석의 ERROR(/Set)를 추가합니다.
| 매개변수 | |
|---|---|
annotations |
|
addAllIncludeFilters
public void addAllIncludeFilters (filters)
포함할 테스트의 필터 ERROR(/Set)를 추가합니다.
| 매개변수 | |
|---|---|
filters |
|
addExcludeAnnotation
public void addExcludeAnnotation (String notAnnotation)
실행할 테스트의 제외 주석을 추가합니다.
| 매개변수 | |
|---|---|
notAnnotation |
String |
addExcludeFilter
public void addExcludeFilter (String filter)
제외할 테스트의 필터를 추가합니다.
| 매개변수 | |
|---|---|
filter |
String |
addIncludeAnnotation
public void addIncludeAnnotation (String annotation)
실행할 테스트의 include 주석을 추가합니다.
| 매개변수 | |
|---|---|
annotation |
String |
addIncludeFilter
public void addIncludeFilter (String filter)
포함할 테스트의 필터를 추가합니다.
| 매개변수 | |
|---|---|
filter |
String |
clearExcludeAnnotations
public void clearExcludeAnnotations ()
clearExcludeFilters
public void clearExcludeFilters ()
clearIncludeAnnotations
public void clearIncludeAnnotations ()
clearIncludeFilters
public void clearIncludeFilters ()
getExcludeAnnotation
publicgetExcludeAnnotation ()
| 반환 값 | |
|---|---|
|
|
getExcludeFilters
publicgetExcludeFilters ()
| 반환 값 | |
|---|---|
|
|
getIncludeAnnotation
publicgetIncludeAnnotation ()
| 반환 값 | |
|---|---|
|
|
getIncludeFilters
publicgetIncludeFilters ()
| 반환 값 | |
|---|---|
|
|
shouldRun
public boolean shouldRun (Description desc,
extraJars) 주석이 있는 요소가 필터를 통과하는지 확인
| 매개변수 | |
|---|---|
desc |
Description: 테스트를 설명하는 Description입니다. |
extraJars |
: 로드할 추가 jar를 가리키는 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입니다. |