public class SRRunnerSpringScenario extends SRSpringJUnit4ClassRunner implements IRunnerScenario
| Modifier and Type | Field and Description |
|---|---|
protected Object |
instance
The fixture object, if it exists, null, otherwise.
|
protected List<INodeListener> |
listeners
Scenario listeners.
|
protected org.junit.runner.notification.RunNotifier |
notifier
The notifier.
|
protected SpecRunnerStatement |
statement
Statement performed.
|
fakeMethod| Constructor and Description |
|---|
SRRunnerSpringScenario(Class<?> clazz)
Basic constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<org.junit.runners.model.FrameworkMethod> |
computeTestMethods() |
org.junit.runner.Description |
describeChild(org.junit.runners.model.FrameworkMethod method) |
protected void |
free()
Clean resource references to avoid JUnit overload.
|
org.junit.runners.model.FrameworkMethod |
getFakeMethod() |
Object |
getInstance() |
List<INodeListener> |
getListeners() |
org.junit.runner.notification.RunNotifier |
getNotifier() |
SpecRunnerStatement |
getStatement() |
protected org.junit.runners.model.Statement |
methodInvoker(org.junit.runners.model.FrameworkMethod method,
Object test) |
void |
run(org.junit.runner.notification.RunNotifier notifier) |
protected void |
runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier) |
void |
setFakeMethod(org.junit.runners.model.FrameworkMethod fakeMethod) |
void |
setListeners(List<INodeListener> listeners) |
classBlock, skipcreateTest, createTestContextManager, getDescription, getExpectedException, getJUnitTimeout, getSpringTimeout, getTestContextManager, isTestMethodIgnored, methodBlock, possiblyExpectingExceptions, withAfterClasses, withAfters, withBeforeClasses, withBefores, withPotentialRepeat, withPotentialTimeoutcollectInitializationErrors, getChildren, getTestRules, isIgnored, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructorchildrenInvoker, classRules, createTestClass, filter, getName, getRunnerAnnotations, getTestClass, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethodsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTestClassprotected org.junit.runner.notification.RunNotifier notifier
protected List<INodeListener> listeners
protected Object instance
protected SpecRunnerStatement statement
public SRRunnerSpringScenario(Class<?> clazz) throws org.junit.runners.model.InitializationError
clazz - The test class.org.junit.runners.model.InitializationError - On initialization errors.public org.junit.runner.notification.RunNotifier getNotifier()
getNotifier in interface IRunnerScenariopublic org.junit.runners.model.FrameworkMethod getFakeMethod()
getFakeMethod in interface IRunnerScenariopublic void setFakeMethod(org.junit.runners.model.FrameworkMethod fakeMethod)
setFakeMethod in interface IRunnerScenariopublic List<INodeListener> getListeners()
getListeners in interface IRunnerScenariopublic void setListeners(List<INodeListener> listeners)
setListeners in interface IRunnerScenariopublic Object getInstance()
getInstance in interface IRunnerScenariopublic SpecRunnerStatement getStatement()
getStatement in interface IRunnerScenariopublic void run(org.junit.runner.notification.RunNotifier notifier)
run in class org.springframework.test.context.junit4.SpringJUnit4ClassRunnerprotected List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
computeTestMethods in class org.junit.runners.BlockJUnit4ClassRunnerpublic org.junit.runner.Description describeChild(org.junit.runners.model.FrameworkMethod method)
describeChild in interface IRunnerScenariodescribeChild in class org.junit.runners.BlockJUnit4ClassRunnerprotected void runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier)
runChild in class org.springframework.test.context.junit4.SpringJUnit4ClassRunnerprotected void free()
protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method,
Object test)
methodInvoker in class org.junit.runners.BlockJUnit4ClassRunnerCopyright © 2018. All rights reserved.