org.jnario.runner
Class FeatureRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runner.Runner>
org.jnario.runner.ExampleGroupRunner
org.jnario.runner.FeatureRunner
- All Implemented Interfaces:
- org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
public class FeatureRunner
- extends ExampleGroupRunner
A spec Runner for Jnario features. It does not reset the scenario's
state between the execution of each step.
- Author:
- Birgit Engelmann - Initial contribution and API, Sebastian Benz - Added support for
Rule and Extensions.
| Methods inherited from class org.jnario.runner.ExampleGroupRunner |
allContainedClasses, allDeclaredClasses, classRules, collectExampleGroups, collectExamples, createExampleGroupRunner, createRunners, createTestInstantiator, describeChild, filterAlreadyScheduled, getChildren, getCreateWithAnnotation, getExtensions, getName, getNameProvider, orderMethods, runChild, targetClass, withAfterClasses, withBeforeClasses |
| Methods inherited from class org.junit.runners.ParentRunner |
childrenInvoker, collectInitializationErrors, filter, getDescription, getRunnerAnnotations, getTestClass, run, runLeaf, 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 |
FeatureRunner
public FeatureRunner(Class<?> klass,
NameProvider nameProvider,
Set<Method> setups)
throws org.junit.runners.model.InitializationError
- Throws:
org.junit.runners.model.InitializationError
FeatureRunner
public FeatureRunner(Class<?> klass)
throws org.junit.runners.model.InitializationError
- Throws:
org.junit.runners.model.InitializationError
isTestMethod
protected com.google.common.base.Predicate<org.junit.runners.model.FrameworkMethod> isTestMethod()
- Overrides:
isTestMethod in class ExampleGroupRunner
createExampleRunner
protected ExampleRunner createExampleRunner(Class<?> testClass,
org.junit.runners.model.FrameworkMethod from)
throws org.junit.runners.model.InitializationError,
org.junit.runner.manipulation.NoTestsRemainException
- Overrides:
createExampleRunner in class ExampleGroupRunner
- Throws:
org.junit.runners.model.InitializationError
org.junit.runner.manipulation.NoTestsRemainException
getOrCreateTestInstantiator
public SpecCreator getOrCreateTestInstantiator()
classBlock
protected org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier)
- Overrides:
classBlock in class org.junit.runners.ParentRunner<org.junit.runner.Runner>
getTestRules
protected List<org.junit.rules.TestRule> getTestRules()
Copyright © 2012-2013 BMW Car IT. All Rights Reserved.