org.apache.directory.server.core.integ
Class FrameworkRunner

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.apache.directory.server.core.integ.FrameworkRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class FrameworkRunner
extends org.junit.runners.BlockJUnit4ClassRunner

The class responsible for running all the tests. t read the annotations, initialize the DirectoryService, call each test and do the cleanup at the end.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
FrameworkRunner(java.lang.Class<?> clazz)
          Creates a new instance of FrameworkRunner.
 
Method Summary
 FrameworkSuite getSuite()
           
 void run(org.junit.runner.notification.RunNotifier notifier)
          
protected  void runChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)
          
 void setSuite(FrameworkSuite suite)
          Set the Suite reference into this class
 
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, methodBlock, methodInvoker, possiblyExpectingExceptions, testName, validateConstructor, validateInstanceMethods, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, filter, getDescription, getName, getTestClass, 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

FrameworkRunner

public FrameworkRunner(java.lang.Class<?> clazz)
                throws org.junit.runners.model.InitializationError
Creates a new instance of FrameworkRunner.

Throws:
org.junit.runners.model.InitializationError
Method Detail

run

public void run(org.junit.runner.notification.RunNotifier notifier)

Overrides:
run 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)

Overrides:
runChild in class org.junit.runners.BlockJUnit4ClassRunner

setSuite

public void setSuite(FrameworkSuite suite)
Set the Suite reference into this class

Parameters:
suite - The suite this classd is contained into

getSuite

public FrameworkSuite getSuite()
Returns:
The Suite this class is contained nto, if any


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.