public final class ExcludeCategories extends CategoryFilterFactory
FilterFactory to exclude categories.
The Filter that is created will filter out tests that are categorized with any of the
given categories.
Usage from command line:
--filter=org.junit.experimental.categories.ExcludeCategories=pkg.of.Cat1,pkg.of.Cat2
Usage from API:
new ExcludeCategories().createFilter(Cat1.class, Cat2.class);
| Modifier and Type | Class and Description |
|---|---|
private static class |
ExcludeCategories.ExcludesAny |
FilterFactory.FilterNotCreatedException| Constructor and Description |
|---|
ExcludeCategories() |
| Modifier and Type | Method and Description |
|---|---|
protected Filter |
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. |
createFilterprotected Filter createFilter(java.util.List<java.lang.Class<?>> categories)
Filter which is only passed by tests that are
not categorized with any of the specified categories.createFilter in class CategoryFilterFactorycategories - Category classes.