public class ExampleRunner
extends org.junit.runners.BlockJUnit4ClassRunner
Runner for executing single examples.| Constructor and Description |
|---|
ExampleRunner(Class<?> testClass,
org.junit.runners.model.FrameworkMethod from,
NameProvider nameProvider,
SpecCreator delegate) |
ExampleRunner(Class<?> testClass,
List<ExtensionClass> extensions,
org.junit.runners.model.FrameworkMethod method,
NameProvider nameProvider,
SpecCreator testBuilder) |
| Modifier and Type | Method and Description |
|---|---|
protected org.junit.runners.model.Statement |
classBlock(org.junit.runner.notification.RunNotifier notifier) |
protected Object |
createTest() |
protected List<org.junit.runners.model.FrameworkMethod> |
getChildren() |
org.junit.runner.Description |
getDescription() |
protected List<org.junit.rules.TestRule> |
getTestRules(Object target) |
protected void |
initializeSubjects(org.junit.runners.model.TestClass testClass,
Object test) |
protected void |
runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier) |
protected String |
testName() |
collectInitializationErrors, computeTestMethods, describeChild, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, testName, validateConstructor, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutpublic ExampleRunner(Class<?> testClass, List<ExtensionClass> extensions, org.junit.runners.model.FrameworkMethod method, NameProvider nameProvider, SpecCreator testBuilder) throws org.junit.runners.model.InitializationError, org.junit.runner.manipulation.NoTestsRemainException
org.junit.runners.model.InitializationErrororg.junit.runner.manipulation.NoTestsRemainExceptionpublic ExampleRunner(Class<?> testClass, org.junit.runners.model.FrameworkMethod from, NameProvider nameProvider, SpecCreator delegate) throws org.junit.runners.model.InitializationError, org.junit.runner.manipulation.NoTestsRemainException
org.junit.runners.model.InitializationErrororg.junit.runner.manipulation.NoTestsRemainExceptionprotected Object createTest() throws Exception
createTest in class org.junit.runners.BlockJUnit4ClassRunnerExceptionprotected void initializeSubjects(org.junit.runners.model.TestClass testClass,
Object test)
throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorprotected org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier)
classBlock in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>protected void runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier)
runChild in class org.junit.runners.BlockJUnit4ClassRunnerprotected List<org.junit.rules.TestRule> getTestRules(Object target)
getTestRules in class org.junit.runners.BlockJUnit4ClassRunnerprotected List<org.junit.runners.model.FrameworkMethod> getChildren()
getChildren in class org.junit.runners.BlockJUnit4ClassRunnerpublic org.junit.runner.Description getDescription()
getDescription in interface org.junit.runner.DescribablegetDescription in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>protected String testName()
Copyright © 2012-2014 BMW Car IT. All Rights Reserved.