org.hibernate.envers.test
Class EnversRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runner.Runner>
          extended by org.junit.runners.Suite
              extended by org.hibernate.envers.test.EnversRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class EnversRunner
extends org.junit.runners.Suite

Copied & modified from Parameterized. The modification is that the generated runners extend CustomRunner instead of the default TestClassRunnerForParameters. The runner itself sets the data using a setter instead of a constructor, and creates only one test instance. Moreover it doesn't override classBlock which causes the custom @BeforeClassOnce and @AfterClassOnce annotations to work.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.junit.runners.Suite
org.junit.runners.Suite.SuiteClasses
 
Constructor Summary
EnversRunner(Class<?> klass)
          Only called reflectively.
 
Method Summary
protected  List<org.junit.runner.Runner> getChildren()
           
 
Methods inherited from class org.junit.runners.Suite
describeChild, emptySuite, runChild
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, collectInitializationErrors, filter, getDescription, getName, getTestClass, run, 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
 

Constructor Detail

EnversRunner

public EnversRunner(Class<?> klass)
             throws Throwable
Only called reflectively. Do not use programmatically.

Throws:
Throwable
Method Detail

getChildren

protected List<org.junit.runner.Runner> getChildren()
Overrides:
getChildren in class org.junit.runners.Suite


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.