Package | Description |
---|---|
junit.framework |
Provides JUnit v3.x core classes.
|
org.junit.experimental.categories | |
org.junit.internal.requests |
Provides implementations of
Request . |
org.junit.internal.runners |
Provides implementations of
Runner |
org.junit.runner |
Provides classes used to describe, collect, run and analyze multiple tests.
|
org.junit.runner.manipulation | |
org.junit.runners |
Provides standard
Runner implementations. |
Modifier and Type | Method and Description |
---|---|
void |
JUnit4TestAdapter.filter(Filter filter) |
Modifier and Type | Class and Description |
---|---|
static class |
Categories.CategoryFilter |
private static class |
ExcludeCategories.ExcludesAny |
private static class |
IncludeCategories.IncludesAny |
Modifier and Type | Method and Description |
---|---|
Filter |
CategoryFilterFactory.createFilter(FilterFactoryParams params)
Creates a
Categories.CategoryFilter given a
FilterFactoryParams argument. |
protected abstract Filter |
CategoryFilterFactory.createFilter(java.util.List<java.lang.Class<?>> categories)
Creates a
Categories.CategoryFilter given an array of classes. |
protected Filter |
ExcludeCategories.createFilter(java.util.List<java.lang.Class<?>> categories)
Creates a
Filter which is only passed by tests that are
not categorized with any of the specified categories. |
protected Filter |
IncludeCategories.createFilter(java.util.List<java.lang.Class<?>> categories)
Creates a
Filter which is only passed by tests that are
categorized with any of the specified categories. |
Modifier and Type | Field and Description |
---|---|
private Filter |
FilterRequest.fFilter |
Constructor and Description |
---|
FilterRequest(Request request,
Filter filter)
Creates a filtered Request
|
Modifier and Type | Method and Description |
---|---|
void |
JUnit4ClassRunner.filter(Filter filter)
Deprecated.
|
void |
JUnit38ClassRunner.filter(Filter filter) |
Modifier and Type | Method and Description |
---|---|
static Filter |
FilterFactories.createFilter(java.lang.Class<? extends FilterFactory> filterFactoryClass,
FilterFactoryParams params)
Creates a
Filter . |
Filter |
FilterFactory.createFilter(FilterFactoryParams params)
Creates a
Filter given a FilterFactoryParams argument. |
static Filter |
FilterFactories.createFilter(java.lang.String filterFactoryFqcn,
FilterFactoryParams params)
Creates a
Filter . |
static Filter |
FilterFactories.createFilterFromFilterSpec(Request request,
java.lang.String filterSpec)
Creates a
Filter . |
Modifier and Type | Method and Description |
---|---|
Request |
Request.filterWith(Filter filter)
Returns a Request that only contains those tests that should run when
filter is applied |
Modifier and Type | Field and Description |
---|---|
static Filter |
Filter.ALL
A null
Filter that passes all tests through. |
Modifier and Type | Method and Description |
---|---|
Filter |
Filter.intersect(Filter second)
Returns a new Filter that accepts the intersection of the tests accepted
by this Filter and
second |
static Filter |
Filter.matchMethodDescription(Description desiredDescription)
Returns a
Filter that only runs the single method described by
desiredDescription |
Modifier and Type | Method and Description |
---|---|
void |
Filterable.filter(Filter filter)
Remove tests that don't pass the parameter
filter . |
Filter |
Filter.intersect(Filter second)
Returns a new Filter that accepts the intersection of the tests accepted
by this Filter and
second |
Modifier and Type | Method and Description |
---|---|
void |
ParentRunner.filter(Filter filter) |
private boolean |
ParentRunner.shouldRun(Filter filter,
T each) |