类 IncludeCategories
- java.lang.Object
- org.junit.experimental.categories.IncludeCategories
- 所有已实现的接口:
FilterFactory
public final class IncludeCategories extends Object
FilterFactory
to include categories. TheFilter
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);
嵌套类概要
从接口继承的嵌套类/接口 org.junit.runner.FilterFactory
FilterFactory.FilterNotCreatedException
构造器概要
构造器 构造器 说明 IncludeCategories()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected Filter
createFilter(List<Class<?>> categories)
Creates aFilter
which is only passed by tests that are categorized with any of the specified categories.Filter
createFilter(FilterFactoryParams params)
Creates aCategories.CategoryFilter
given aFilterFactoryParams
argument.
构造器详细资料
IncludeCategories
public IncludeCategories()
方法详细资料
createFilter
protected Filter createFilter(List<Class<?>> categories)
Creates aFilter
which is only passed by tests that are categorized with any of the specified categories.- 参数:
categories
- Category classes.
createFilter
public Filter createFilter(FilterFactoryParams params) throws FilterFactory.FilterNotCreatedException
Creates aCategories.CategoryFilter
given aFilterFactoryParams
argument.- 指定者:
createFilter
在接口中FilterFactory
- 参数:
params
- Parameters needed to create theFilter
- 抛出:
FilterFactory.FilterNotCreatedException