JUnit4TestFilter

public class JUnit4TestFilter
extends Filter

java.lang.Object
   ↳ org.junit.runner.manipulation.Filter
     ↳ com.android.tradefed.util.JUnit4TestFilter


Helper Class that provides the filtering for JUnit4 runner by extending the Filter.

Summary

Fields

final Annotation junit4TestAnnotation

Public constructors

JUnit4TestFilter(TestFilterHelper filterHelper)

Public methods

String describe()
boolean shouldRun(Description description)

Filter function deciding whether a test should run or not.

Fields

junit4TestAnnotation

Annotation junit4TestAnnotation

Public constructors

JUnit4TestFilter

JUnit4TestFilter (TestFilterHelper filterHelper)

Parameters
filterHelper TestFilterHelper

Public methods

describe

String describe ()

Returns
String

shouldRun

boolean shouldRun (Description description)

Filter function deciding whether a test should run or not. TODO: Once the JUnit4 version is updated, the JUnit3 tests will have their annotations available in Description for direct filtering.

Parameters
description Description
Returns
boolean