Package org.xwiki.rendering.test.cts
Class RenderingTestClassRunner
- java.lang.Object
-
- org.junit.runner.Runner
-
- org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
- org.junit.runners.BlockJUnit4ClassRunner
-
- org.xwiki.rendering.test.cts.RenderingTestClassRunner
-
- All Implemented Interfaces:
org.junit.runner.Describable
,org.junit.runner.manipulation.Filterable
,org.junit.runner.manipulation.Orderable
,org.junit.runner.manipulation.Sortable
public class RenderingTestClassRunner extends org.junit.runners.BlockJUnit4ClassRunner
Represents a Test Runner for a single Rendering Test to execute.- Since:
- 4.1M1
- Version:
- $Id: 67dcd83448b844cf2e2365c307934062d372425d $
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.junit.runners.model.Statement
classBlock(org.junit.runner.notification.RunNotifier notifier)
Object
createTest()
protected String
getName()
protected void
runChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)
protected String
testName(org.junit.runners.model.FrameworkMethod method)
protected void
validateConstructor(List<Throwable> errors)
-
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
-
-
-
-
Method Detail
-
createTest
public Object createTest() throws Exception
- Overrides:
createTest
in classorg.junit.runners.BlockJUnit4ClassRunner
- Throws:
Exception
-
getName
protected String getName()
- Overrides:
getName
in classorg.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
testName
protected String testName(org.junit.runners.model.FrameworkMethod method)
- Overrides:
testName
in classorg.junit.runners.BlockJUnit4ClassRunner
-
validateConstructor
protected void validateConstructor(List<Throwable> errors)
- Overrides:
validateConstructor
in classorg.junit.runners.BlockJUnit4ClassRunner
-
classBlock
protected org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier)
- Overrides:
classBlock
in classorg.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
runChild
protected void runChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)
Initialize the Component Manager and call all methods annotated with
Initialized
in the suite, before each test is executed, to ensure test isolation.- Overrides:
runChild
in classorg.junit.runners.BlockJUnit4ClassRunner
-
-