cucumber.api.junit
Class Cucumber
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<cucumber.runtime.junit.FeatureRunner>
cucumber.api.junit.Cucumber
- All Implemented Interfaces:
- Describable, Filterable, Sortable
public class Cucumber
- extends ParentRunner<cucumber.runtime.junit.FeatureRunner>
Classes annotated with @RunWith(Cucumber.class) will run a Cucumber Feature.
The class should be empty without any fields or methods.
Cucumber will look for a .feature file on the classpath, using the same resource
path as the annotated class (.class substituted by .feature).
Additional hints can be given to Cucumber by annotating the class with Cucumber.Options.
- See Also:
Cucumber.Options
|
Constructor Summary |
Cucumber(Class clazz)
Constructor called by JUnit. |
| Methods inherited from class org.junit.runners.ParentRunner |
childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cucumber
public Cucumber(Class clazz)
throws org.junit.runners.model.InitializationError,
IOException
- Constructor called by JUnit.
- Parameters:
clazz - the class with the @RunWith annotation.
- Throws:
IOException - if there is a problem
org.junit.runners.model.InitializationError - if there is another problem
getChildren
public List<cucumber.runtime.junit.FeatureRunner> getChildren()
- Specified by:
getChildren in class ParentRunner<cucumber.runtime.junit.FeatureRunner>
describeChild
protected Description describeChild(cucumber.runtime.junit.FeatureRunner child)
- Specified by:
describeChild in class ParentRunner<cucumber.runtime.junit.FeatureRunner>
runChild
protected void runChild(cucumber.runtime.junit.FeatureRunner child,
RunNotifier notifier)
- Specified by:
runChild in class ParentRunner<cucumber.runtime.junit.FeatureRunner>
run
public void run(RunNotifier notifier)
- Overrides:
run in class ParentRunner<cucumber.runtime.junit.FeatureRunner>
Copyright © 2013. All Rights Reserved.