org.xwiki.rendering.test.cts
Class RenderingTestClassRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
          extended by org.junit.runners.BlockJUnit4ClassRunner
              extended by org.xwiki.rendering.test.cts.RenderingTestClassRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, 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: 9e1145a96d9e5c22e5c2b4794b8a130afd2b5979 $

Method Summary
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, describeChild, getChildren, getTestRules, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classRules, filter, getDescription, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createTest

public Object createTest()
                  throws Exception
Overrides:
createTest in class org.junit.runners.BlockJUnit4ClassRunner
Throws:
Exception

getName

protected String getName()
Overrides:
getName in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>

testName

protected String testName(org.junit.runners.model.FrameworkMethod method)
Overrides:
testName in class org.junit.runners.BlockJUnit4ClassRunner

validateConstructor

protected void validateConstructor(List<Throwable> errors)
Overrides:
validateConstructor in class org.junit.runners.BlockJUnit4ClassRunner

classBlock

protected org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier)
Overrides:
classBlock in class org.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 class org.junit.runners.BlockJUnit4ClassRunner


Copyright © 2004-2013 XWiki. All Rights Reserved.