|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
org.specrunner.junit.ConcurrentRunner
org.specrunner.junit.SRRunnerConcurrentScenario
public class SRRunnerConcurrentScenario
SpecRunner concurrent executor.
| Field Summary | |
|---|---|
protected org.junit.runners.model.FrameworkMethod |
fakeMethod
The fake method. |
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. |
| Constructor Summary | |
|---|---|
SRRunnerConcurrentScenario(Class<?> clazz)
Basic constructor. |
|
| Method Summary | |
|---|---|
protected List<org.junit.runners.model.FrameworkMethod> |
computeTestMethods()
|
org.junit.runner.Description |
describeChild(org.junit.runners.model.FrameworkMethod method)
Get description. |
protected void |
free()
Clean resource references to avoid JUnit overload. |
org.junit.runners.model.FrameworkMethod |
getFakeMethod()
The fake method. |
Object |
getInstance()
The fixture object, if it exists, null, otherwise. |
List<INodeListener> |
getListeners()
Scenario listeners. |
org.junit.runner.notification.RunNotifier |
getNotifier()
The notifier. |
SpecRunnerStatement |
getStatement()
Statement performed. |
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)
Set fake method. |
void |
setListeners(List<INodeListener> listeners)
Get listeners. |
| Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner |
|---|
collectInitializationErrors, createTest, getChildren, getTestRules, isIgnored, methodBlock, possiblyExpectingExceptions, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout |
| Methods inherited from class org.junit.runners.ParentRunner |
|---|
childrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses |
| Methods inherited from class org.junit.runner.Runner |
|---|
testCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.specrunner.junit.IRunnerScenario |
|---|
getTestClass |
| Field Detail |
|---|
protected org.junit.runner.notification.RunNotifier notifier
protected org.junit.runners.model.FrameworkMethod fakeMethod
protected List<INodeListener> listeners
protected Object instance
protected SpecRunnerStatement statement
| Constructor Detail |
|---|
public SRRunnerConcurrentScenario(Class<?> clazz)
throws org.junit.runners.model.InitializationError
clazz - The test class.
org.junit.runners.model.InitializationError - On initialization errors.| Method Detail |
|---|
public org.junit.runner.notification.RunNotifier getNotifier()
IRunnerScenario
getNotifier in interface IRunnerScenariopublic org.junit.runners.model.FrameworkMethod getFakeMethod()
IRunnerScenario
getFakeMethod in interface IRunnerScenariopublic void setFakeMethod(org.junit.runners.model.FrameworkMethod fakeMethod)
IRunnerScenario
setFakeMethod in interface IRunnerScenariofakeMethod - A method.public List<INodeListener> getListeners()
IRunnerScenario
getListeners in interface IRunnerScenariopublic void setListeners(List<INodeListener> listeners)
IRunnerScenario
setListeners in interface IRunnerScenariolisteners - A set of listeners.public Object getInstance()
IRunnerScenario
getInstance in interface IRunnerScenariopublic SpecRunnerStatement getStatement()
IRunnerScenario
getStatement in interface IRunnerScenariopublic void run(org.junit.runner.notification.RunNotifier notifier)
run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>protected 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)
IRunnerScenario
describeChild in interface IRunnerScenariodescribeChild in class org.junit.runners.BlockJUnit4ClassRunnermethod - A method.
protected void runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier)
runChild in class org.junit.runners.BlockJUnit4ClassRunnerprotected void free()
protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method,
Object test)
methodInvoker in class org.junit.runners.BlockJUnit4ClassRunner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||