Class ExcludeCategories
java.lang.Object
org.junit.experimental.categories.CategoryFilterFactory
org.junit.experimental.categories.ExcludeCategories
- All Implemented Interfaces:
FilterFactory
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);
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.junit.runner.FilterFactory
FilterFactory.FilterNotCreatedException
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Filter
createFilter
(List<Class<?>> categories) Creates aFilter
which is only passed by tests that are not categorized with any of the specified categories.Methods inherited from class org.junit.experimental.categories.CategoryFilterFactory
createFilter
-
Constructor Details
-
ExcludeCategories
public ExcludeCategories()
-
-
Method Details
-
createFilter
Creates aFilter
which is only passed by tests that are not categorized with any of the specified categories.- Specified by:
createFilter
in classCategoryFilterFactory
- Parameters:
categories
- Category classes.
-