public class AnnotatedPathRunner extends AnnotatedEmbedderRunner
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 and Description |
---|
AnnotatedPathRunner(Class<?> annotatedClass)
Class constructor.
|
Modifier and Type | Method and 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) |
annotationBuilder, createTest, testClass
computeTestMethods, describeChild, getChildren, getTestRules, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
protected StoryNameResolver storyNameResolver()
public org.junit.runner.Description getDescription()
getDescription
in interface org.junit.runner.Describable
getDescription
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
protected void collectInitializationErrors(List<Throwable> errors)
collectInitializationErrors
in class org.junit.runners.BlockJUnit4ClassRunner
protected void validateInstanceMethods(List<Throwable> errors)
validateInstanceMethods
in class org.junit.runners.BlockJUnit4ClassRunner
public void run(org.junit.runner.notification.RunNotifier notifier)
run
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
Copyright © 2003-2014. All Rights Reserved.