Package org.jbehave.core.junit
Class AnnotatedPathRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
org.jbehave.core.junit.AnnotatedEmbedderRunner
org.jbehave.core.junit.AnnotatedPathRunner
- All Implemented Interfaces:
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Orderable,org.junit.runner.manipulation.Sortable
A JUnit
Runner that uses a UsingPaths annotation to specify
which story paths to run and uses the RunNotifier to provide a
Description for each. The story description uses a
StoryNameResolver (overridable via the storyNameResolver()
method) to resolve the story path to a name.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcollectInitializationErrors(List<Throwable> errors) org.junit.runner.Descriptionvoidrun(org.junit.runner.notification.RunNotifier notifier) protected StoryNameResolverprotected voidvalidateInstanceMethods(List<Throwable> errors) Methods inherited from class org.jbehave.core.junit.AnnotatedEmbedderRunner
annotationBuilder, createTest, testClassMethods inherited from class org.junit.runners.BlockJUnit4ClassRunner
computeTestMethods, createTest, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutMethods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, createTestClass, filter, getName, getRunnerAnnotations, getTestClass, order, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolationMethods inherited from class org.junit.runner.Runner
testCount
-
Constructor Details
-
Method Details
-
storyNameResolver
-
getDescription
public org.junit.runner.Description getDescription()- Specified by:
getDescriptionin interfaceorg.junit.runner.Describable- Overrides:
getDescriptionin classorg.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
collectInitializationErrors
- Overrides:
collectInitializationErrorsin classorg.junit.runners.BlockJUnit4ClassRunner
-
validateInstanceMethods
- Overrides:
validateInstanceMethodsin classorg.junit.runners.BlockJUnit4ClassRunner
-
run
public void run(org.junit.runner.notification.RunNotifier notifier) - Overrides:
runin classorg.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-