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(java.lang.Class<?> annotatedClass)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
collectInitializationErrors(java.util.List<java.lang.Throwable> errors) |
org.junit.runner.Description |
getDescription() |
void |
run(org.junit.runner.notification.RunNotifier notifier) |
protected StoryNameResolver |
storyNameResolver() |
protected void |
validateInstanceMethods(java.util.List<java.lang.Throwable> errors) |
annotationBuilder, createTest, testClass
computeTestMethods, describeChild, getChildren, getTestRules, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
public AnnotatedPathRunner(java.lang.Class<?> annotatedClass) throws org.junit.runners.model.InitializationError
annotatedClass
- the annotated Class
.org.junit.runners.model.InitializationError
- if an error occurs.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(java.util.List<java.lang.Throwable> errors)
collectInitializationErrors
in class org.junit.runners.BlockJUnit4ClassRunner
protected void validateInstanceMethods(java.util.List<java.lang.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.