org.junit.experimental.categories
Class Categories.CategoryFilter
java.lang.Object
org.junit.runner.manipulation.Filter
org.junit.experimental.categories.Categories.CategoryFilter
- Enclosing class:
- Categories
public static class Categories.CategoryFilter
- extends Filter
Fields inherited from class org.junit.runner.manipulation.Filter |
ALL |
Categories.CategoryFilter
@Deprecated
public Categories.CategoryFilter(Class<?> includedCategory,
Class<?> excludedCategory)
- Deprecated.
Categories.CategoryFilter
protected Categories.CategoryFilter(boolean matchAnyIncludes,
Set<Class<?>> includes,
boolean matchAnyExcludes,
Set<Class<?>> excludes)
include
public static Categories.CategoryFilter include(boolean matchAny,
Class<?>... categories)
include
public static Categories.CategoryFilter include(Class<?> category)
include
public static Categories.CategoryFilter include(Class<?>... categories)
exclude
public static Categories.CategoryFilter exclude(boolean matchAny,
Class<?>... categories)
exclude
public static Categories.CategoryFilter exclude(Class<?> category)
exclude
public static Categories.CategoryFilter exclude(Class<?>... categories)
categoryFilter
public static Categories.CategoryFilter categoryFilter(boolean matchAnyInclusions,
Set<Class<?>> inclusions,
boolean matchAnyExclusions,
Set<Class<?>> exclusions)
describe
public String describe()
- Description copied from class:
Filter
- Returns a textual description of this Filter
- Specified by:
describe
in class Filter
- Returns:
- a textual description of this Filter
- See Also:
toString()
toString
public String toString()
- Returns string in the form "[included categories] - [excluded categories]", where both
sets have comma separated names of categories.
- Overrides:
toString
in class Object
- Returns:
- string representation for the relative complement of excluded categories set
in the set of included categories. Examples:
- "categories [all]" for all included categories and no excluded ones;
- "categories [all] - [A, B]" for all included categories and given excluded ones;
- "categories [A, B] - [C, D]" for given included categories and given excluded ones.
- See Also:
name of category
shouldRun
public boolean shouldRun(Description description)
- Specified by:
shouldRun
in class Filter
- Parameters:
description
- the description of the test to be run
- Returns:
true
if the test should be run
Copyright © 2002–2020 JUnit. All rights reserved.