| Package | Description |
|---|---|
| junit.framework |
Provides JUnit v3.x core classes.
|
| org.junit.experimental.categories | |
| 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 |
| Modifier and Type | Method and Description |
|---|---|
protected Filter |
IncludeCategories.createFilter(List<Class<?>> categories)
Creates a
Filter which is only passed by tests that are
categorized with any of the specified categories. |
protected Filter |
ExcludeCategories.createFilter(List<Class<?>> categories)
Creates a
Filter which is only passed by tests that are
not categorized with any of the specified categories. |
| Modifier and Type | Method and Description |
|---|---|
Filter |
FilterFactory.createFilter(FilterFactoryParams params)
Creates a
Filter given a FilterFactoryParams argument. |
| 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) |
Copyright © 2002–2020 JUnit. All rights reserved.