org.jnario.runner
Class ExampleRunner

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.jnario.runner.ExampleRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
Direct Known Subclasses:
StepRunner

public class ExampleRunner
extends org.junit.runners.BlockJUnit4ClassRunner

A Runner for executing single examples.

Author:
Sebastian Benz - Initial contribution and API

Constructor Summary
ExampleRunner(Class<?> testClass, org.junit.runners.model.FrameworkMethod from, NameProvider nameProvider, SpecCreator delegate)
           
ExampleRunner(Class<?> testClass, List<ExtensionClass> extensions, org.junit.runners.model.FrameworkMethod method, NameProvider nameProvider, SpecCreator testBuilder)
           
 
Method Summary
protected  org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier)
           
protected  Object createTest()
           
protected  List<org.junit.runners.model.FrameworkMethod> getChildren()
           
 org.junit.runner.Description getDescription()
           
protected  List<org.junit.rules.TestRule> getTestRules(Object target)
           
protected  void initializeSubjects(org.junit.runners.model.TestClass testClass, Object test)
           
protected  void runChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)
           
protected  String testName()
           
 
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, describeChild, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, testName, validateConstructor, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classRules, filter, getName, 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
 

Constructor Detail

ExampleRunner

public ExampleRunner(Class<?> testClass,
                     List<ExtensionClass> extensions,
                     org.junit.runners.model.FrameworkMethod method,
                     NameProvider nameProvider,
                     SpecCreator testBuilder)
              throws org.junit.runners.model.InitializationError,
                     org.junit.runner.manipulation.NoTestsRemainException
Throws:
org.junit.runners.model.InitializationError
org.junit.runner.manipulation.NoTestsRemainException

ExampleRunner

public ExampleRunner(Class<?> testClass,
                     org.junit.runners.model.FrameworkMethod from,
                     NameProvider nameProvider,
                     SpecCreator delegate)
              throws org.junit.runners.model.InitializationError,
                     org.junit.runner.manipulation.NoTestsRemainException
Throws:
org.junit.runners.model.InitializationError
org.junit.runner.manipulation.NoTestsRemainException
Method Detail

createTest

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

initializeSubjects

protected void initializeSubjects(org.junit.runners.model.TestClass testClass,
                                  Object test)
                           throws org.junit.runners.model.InitializationError
Throws:
org.junit.runners.model.InitializationError

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)
Overrides:
runChild in class org.junit.runners.BlockJUnit4ClassRunner

getTestRules

protected List<org.junit.rules.TestRule> getTestRules(Object target)
Overrides:
getTestRules in class org.junit.runners.BlockJUnit4ClassRunner

getChildren

protected List<org.junit.runners.model.FrameworkMethod> getChildren()
Overrides:
getChildren in class org.junit.runners.BlockJUnit4ClassRunner

getDescription

public org.junit.runner.Description getDescription()
Specified by:
getDescription in interface org.junit.runner.Describable
Overrides:
getDescription in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>

testName

protected String testName()


Copyright © 2012-2013 BMW Car IT. All Rights Reserved.