public class ExampleGroupRunner
extends org.junit.runners.ParentRunner<org.junit.runner.Runner>
Runner features full text descriptions for tests and
classes annotated with Named. It combines the functionality of a
BlockJUnit4ClassRunner with a Suite to enable nesting specs and facts.
Nested specs can be declared using the Contains annotation.| Constructor and Description |
|---|
ExampleGroupRunner(Class<?> testClass) |
ExampleGroupRunner(Class<?> testClass,
NameProvider nameProvider,
Set<Method> setups) |
| Modifier and Type | Method and Description |
|---|---|
protected Iterable<? extends Class<?>> |
allContainedClasses() |
protected List<Class<?>> |
allDeclaredClasses() |
protected List<org.junit.rules.TestRule> |
classRules() |
protected Iterable<? extends org.junit.runner.Runner> |
collectExampleGroups() |
protected Iterable<? extends org.junit.runner.Runner> |
collectExamples() |
protected org.junit.runner.Runner |
createExampleGroupRunner(Class<?> declaredClass) |
protected ExampleRunner |
createExampleRunner(Class<?> testClass,
org.junit.runners.model.FrameworkMethod from) |
protected Iterable<? extends org.junit.runner.Runner> |
createRunners(Class<?> testClass,
List<org.junit.runners.model.FrameworkMethod> annotatedMethods) |
protected SpecCreator |
createTestInstantiator() |
protected org.junit.runner.Description |
describeChild(org.junit.runner.Runner child) |
List<org.junit.runners.model.FrameworkMethod> |
filterAlreadyScheduled(List<org.junit.runners.model.FrameworkMethod> befores) |
protected List<org.junit.runner.Runner> |
getChildren() |
protected CreateWith |
getCreateWithAnnotation() |
protected List<ExtensionClass> |
getExtensions() |
protected String |
getName() |
protected NameProvider |
getNameProvider() |
protected com.google.common.base.Predicate<org.junit.runners.model.FrameworkMethod> |
isTestMethod() |
protected void |
orderMethods(List<org.junit.runners.model.FrameworkMethod> annotatedMethods) |
protected void |
runChild(org.junit.runner.Runner child,
org.junit.runner.notification.RunNotifier notifier) |
protected Class<?> |
targetClass() |
protected org.junit.runners.model.Statement |
withAfterClasses(org.junit.runners.model.Statement statement) |
protected org.junit.runners.model.Statement |
withBeforeClasses(org.junit.runners.model.Statement statement) |
public ExampleGroupRunner(Class<?> testClass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorpublic ExampleGroupRunner(Class<?> testClass, NameProvider nameProvider, Set<Method> setups) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorprotected String getName()
getName in class org.junit.runners.ParentRunner<org.junit.runner.Runner>protected List<org.junit.runner.Runner> getChildren()
getChildren in class org.junit.runners.ParentRunner<org.junit.runner.Runner>protected NameProvider getNameProvider()
protected Iterable<? extends org.junit.runner.Runner> collectExamples()
protected com.google.common.base.Predicate<org.junit.runners.model.FrameworkMethod> isTestMethod()
protected Iterable<? extends org.junit.runner.Runner> createRunners(Class<?> testClass, List<org.junit.runners.model.FrameworkMethod> annotatedMethods)
protected void orderMethods(List<org.junit.runners.model.FrameworkMethod> annotatedMethods)
protected ExampleRunner createExampleRunner(Class<?> testClass, org.junit.runners.model.FrameworkMethod from) throws org.junit.runners.model.InitializationError, org.junit.runner.manipulation.NoTestsRemainException
org.junit.runners.model.InitializationErrororg.junit.runner.manipulation.NoTestsRemainExceptionprotected SpecCreator createTestInstantiator() throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorprotected CreateWith getCreateWithAnnotation()
protected Iterable<? extends org.junit.runner.Runner> collectExampleGroups()
protected org.junit.runner.Runner createExampleGroupRunner(Class<?> declaredClass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorprotected Class<?> targetClass()
protected org.junit.runner.Description describeChild(org.junit.runner.Runner child)
describeChild in class org.junit.runners.ParentRunner<org.junit.runner.Runner>protected void runChild(org.junit.runner.Runner child,
org.junit.runner.notification.RunNotifier notifier)
runChild in class org.junit.runners.ParentRunner<org.junit.runner.Runner>protected List<org.junit.rules.TestRule> classRules()
classRules in class org.junit.runners.ParentRunner<org.junit.runner.Runner>protected org.junit.runners.model.Statement withBeforeClasses(org.junit.runners.model.Statement statement)
withBeforeClasses in class org.junit.runners.ParentRunner<org.junit.runner.Runner>protected org.junit.runners.model.Statement withAfterClasses(org.junit.runners.model.Statement statement)
withAfterClasses in class org.junit.runners.ParentRunner<org.junit.runner.Runner>public List<org.junit.runners.model.FrameworkMethod> filterAlreadyScheduled(List<org.junit.runners.model.FrameworkMethod> befores)
protected List<ExtensionClass> getExtensions()
Copyright © 2012-2014 BMW Car IT. All Rights Reserved.