|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.listeners.core.AbstractScenarioWrapperListener
public abstract class AbstractScenarioWrapperListener
Wrapp a scenario with a start tag, and an end tag, i.e. clean database (dbms) and compare database (compareBase).
| Constructor Summary | |
|---|---|
AbstractScenarioWrapperListener()
|
|
| Method Summary | |
|---|---|
void |
afterScenario(String title,
nu.xom.Node node,
IContext context,
IResultSet result,
Object instance)
Perform something after each scenario. |
protected void |
append(nu.xom.Node node,
IContext context,
IResultSet result,
Class<? extends IPlugin> type,
String message,
boolean onStart)
Append a start and and tag to a scenario. |
void |
beforeScenario(String title,
nu.xom.Node node,
IContext context,
IResultSet result,
Object instance)
Perform something before each scenario. |
protected nu.xom.Element |
createElement(Class<? extends IPlugin> type,
String message)
Create element to add. |
protected abstract Class<? extends IPlugin> |
getOnEnd()
On end plugin type. |
protected abstract String |
getOnEndMessage()
Get on end message. |
protected abstract Class<? extends IPlugin> |
getOnStart()
On start plugin type. |
protected abstract String |
getOnStartMessage()
On start message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractScenarioWrapperListener()
| Method Detail |
|---|
public void beforeScenario(String title,
nu.xom.Node node,
IContext context,
IResultSet result,
Object instance)
throws SpecRunnerException
IScenarioListener
beforeScenario in interface IScenarioListenertitle - The scenario title.node - The scenario node.context - The test context.result - The result set.instance - The fixture object, if it exists, null, otherwise.
SpecRunnerException - Exception for scenarios.
protected void append(nu.xom.Node node,
IContext context,
IResultSet result,
Class<? extends IPlugin> type,
String message,
boolean onStart)
throws PluginException
node - Scenario node.context - A context.result - A result set.type - A plugin type to add.message - A message to add.onStart - true, if add on start scenario, false, otherwise.
PluginException - On processing errors.protected abstract Class<? extends IPlugin> getOnStart()
protected abstract String getOnStartMessage()
protected abstract Class<? extends IPlugin> getOnEnd()
protected abstract String getOnEndMessage()
protected nu.xom.Element createElement(Class<? extends IPlugin> type,
String message)
throws PluginException
type - Plugin type.message - A message.
PluginException - O creation errors.
public void afterScenario(String title,
nu.xom.Node node,
IContext context,
IResultSet result,
Object instance)
throws SpecRunnerException
IScenarioListener
afterScenario in interface IScenarioListenertitle - The scenario title.node - The scenario node.context - The test context.result - The result set.instance - The fixture object, if it exists, null, otherwise.
SpecRunnerException - Exception for scenarios.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||