ch.elca.el4j.tests.core.context.junit4
Class EL4JJunit4ClassRunner

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.springframework.test.context.junit4.SpringJUnit4ClassRunner
                  extended by ch.elca.el4j.tests.core.context.junit4.EL4JJunit4ClassRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class EL4JJunit4ClassRunner
extends SpringJUnit4ClassRunner

JUnit4ClassRunner which enables the use of the ExtendedContextConfiguration. To be used in conjunction with the ModuleTestContextLoader. It is an error to use this ClassRunner with a ContextConfiguration.loader() not set to a subtype of ModuleTestContextLoader.

Author:
Simon Stelling (SST)
File-location:
EL4JJunit4ClassRunner
Last check-in date:
2010-12-21 11:08:04 +0100 (Di, 21. Dez 2010) by swismer for revision 4253

Constructor Summary
EL4JJunit4ClassRunner(Class<?> testClass)
          Constructor which places the tested class in a thread-local variable of ModuleTestContextLoader so the ContextLoader can investigate the @ExtendedContextConfiguration annotation and configure the ModuleApplicationContext appropriately.
 
Method Summary
 
Methods inherited from class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
createTest, createTestContextManager, getDefaultContextLoaderClassName, getDescription, getExpectedException, getJUnitTimeout, getSpringTimeout, getTestContextManager, isTestMethodIgnored, methodBlock, possiblyExpectingExceptions, run, runChild, withAfterClasses, withAfters, withBeforeClasses, withBefores, withPotentialRepeat, withPotentialTimeout
 
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, describeChild, getChildren, methodInvoker, testName, validateConstructor, validateInstanceMethods, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, filter, getName, getTestClass, setScheduler, sort, validatePublicVoidNoArgMethods
 
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
 

Constructor Detail

EL4JJunit4ClassRunner

public EL4JJunit4ClassRunner(Class<?> testClass)
                      throws org.junit.runners.model.InitializationError
Constructor which places the tested class in a thread-local variable of ModuleTestContextLoader so the ContextLoader can investigate the @ExtendedContextConfiguration annotation and configure the ModuleApplicationContext appropriately.

Parameters:
testClass - the test class
Throws:
org.junit.runners.model.InitializationError


Copyright © 2005-2011 ELCA. All Rights Reserved.