public class CategoryRunner
extends org.junit.runners.BlockJUnit4ClassRunner
JUnitCategoryWrapper
Constructor and Description |
---|
CategoryRunner(Class<?> klass) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Category anno)
Return true if an annotated Unit test is accepted by the wrapper.
|
boolean |
accept(Category[] annoArray)
Return true if a Unit test annotated by a repeating annotation is accepted by the wrapper.
|
protected List<org.junit.runners.model.FrameworkMethod> |
getChildren() |
protected boolean |
isIgnored(org.junit.runners.model.FrameworkMethod child)
Evaluates whether
FrameworkMethod s are ignored based on the Ignore annotation. |
protected org.junit.runners.model.Statement |
withAfterClasses(org.junit.runners.model.Statement statement)
Return the original annotated "AfterClass" statement if the status of the class indicates that the Unit Tests in the class should be
computed, else return an empty statement.
|
protected org.junit.runners.model.Statement |
withBeforeClasses(org.junit.runners.model.Statement statement)
Return the original annotated "BeforeClass" statement if the status of the class indicates that the Unit Tests in the class should be
computed, else return an empty statement.
|
collectInitializationErrors, computeTestMethods, createTest, describeChild, getTestRules, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
public CategoryRunner(Class<?> klass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
protected org.junit.runners.model.Statement withBeforeClasses(org.junit.runners.model.Statement statement)
withBeforeClasses
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
statement
- the original statementprotected org.junit.runners.model.Statement withAfterClasses(org.junit.runners.model.Statement statement)
withAfterClasses
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
statement
- the original statementpublic boolean accept(Category anno)
anno
- the annotationpublic boolean accept(Category[] annoArray)
annoArray
- the array of repeating annotationprotected List<org.junit.runners.model.FrameworkMethod> getChildren()
getChildren
in class org.junit.runners.BlockJUnit4ClassRunner
protected boolean isIgnored(org.junit.runners.model.FrameworkMethod child)
FrameworkMethod
s are ignored based on the Ignore
annotation.isIgnored
in class org.junit.runners.BlockJUnit4ClassRunner
child
- the FrameworkMethod