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
public class AnnotatedPathRunner extends AnnotatedEmbedderRunner
A JUnitRunner
that uses aUsingPaths
annotation to specify which story paths to run and uses theRunNotifier
to provide aDescription
for each. The story description uses aStoryNameResolver
(overridable via thestoryNameResolver()
method) to resolve the story path to a name.
-
-
Constructor Summary
Constructors Constructor Description AnnotatedPathRunner(Class<?> annotatedClass)
Class constructor.
-
Method Summary
Modifier and Type Method Description protected void
collectInitializationErrors(List<Throwable> errors)
org.junit.runner.Description
getDescription()
void
run(org.junit.runner.notification.RunNotifier notifier)
protected StoryNameResolver
storyNameResolver()
protected void
validateInstanceMethods(List<Throwable> errors)
-
Methods inherited from class org.jbehave.core.junit.AnnotatedEmbedderRunner
annotationBuilder, createTest, testClass
-
Methods 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, withPotentialTimeout
-
-
-
-
Method Detail
-
storyNameResolver
protected StoryNameResolver storyNameResolver()
-
getDescription
public org.junit.runner.Description getDescription()
- Specified by:
getDescription
in interfaceorg.junit.runner.Describable
- Overrides:
getDescription
in classorg.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
collectInitializationErrors
protected void collectInitializationErrors(List<Throwable> errors)
- Overrides:
collectInitializationErrors
in classorg.junit.runners.BlockJUnit4ClassRunner
-
validateInstanceMethods
protected void validateInstanceMethods(List<Throwable> errors)
- Overrides:
validateInstanceMethods
in classorg.junit.runners.BlockJUnit4ClassRunner
-
run
public void run(org.junit.runner.notification.RunNotifier notifier)
- Overrides:
run
in classorg.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
-