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, testClasscomputeTestMethods, describeChild, getChildren, getTestRules, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutprotected StoryNameResolver storyNameResolver()
public org.junit.runner.Description getDescription()
getDescription in interface org.junit.runner.DescribablegetDescription in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>protected void collectInitializationErrors(List<Throwable> errors)
collectInitializationErrors in class org.junit.runners.BlockJUnit4ClassRunnerprotected void validateInstanceMethods(List<Throwable> errors)
validateInstanceMethods in class org.junit.runners.BlockJUnit4ClassRunnerpublic void run(org.junit.runner.notification.RunNotifier notifier)
run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>Copyright © 2003-2013. All Rights Reserved.