Class IncludeCategories
java.lang.Object
org.junit.experimental.categories.IncludeCategories
- All Implemented Interfaces:
FilterFactory
FilterFactory to include 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.IncludeCategories=pkg.of.Cat1,pkg.of.Cat2
Usage from API:
new IncludeCategories().createFilter(Cat1.class, Cat2.class);
-
Nested Class Summary
Nested classes/interfaces inherited from interface FilterFactory
FilterFactory.FilterNotCreatedException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FiltercreateFilter(List<Class<?>> categories) Creates aFilterwhich is only passed by tests that are categorized with any of the specified categories.createFilter(FilterFactoryParams params) Creates aCategories.CategoryFiltergiven aFilterFactoryParamsargument.
-
Constructor Details
-
IncludeCategories
public IncludeCategories()
-
-
Method Details
-
createFilter
-
createFilter
public Filter createFilter(FilterFactoryParams params) throws FilterFactory.FilterNotCreatedException Creates aCategories.CategoryFiltergiven aFilterFactoryParamsargument.- Specified by:
createFilterin interfaceFilterFactory- Parameters:
params- Parameters needed to create theFilter- Throws:
FilterFactory.FilterNotCreatedException
-