|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.listeners.core.ScenarioCleanerListener
public class ScenarioCleanerListener
Cleaner for scenarios considering @BeforeScenario and @AfterScenario as references.
| Constructor Summary | |
|---|---|
ScenarioCleanerListener()
|
|
| Method Summary | |
|---|---|
void |
afterScenario(String title,
nu.xom.Node node,
IContext context,
IResultSet result,
Object instance)
Perform something after each scenario. |
void |
beforeScenario(String title,
nu.xom.Node node,
IContext context,
IResultSet result,
Object instance)
Perform something before each scenario. |
protected void |
execute(Object instance,
Class<? extends Annotation> type,
String title,
nu.xom.Node node,
IContext context,
IResultSet result)
Execute annotated methods. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScenarioCleanerListener()
| 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.
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.
protected void execute(Object instance,
Class<? extends Annotation> type,
String title,
nu.xom.Node node,
IContext context,
IResultSet result)
throws SpecRunnerException
instance - The fixture object, if it exists, null, otherwise.type - The annotation type to perform methods.title - The title.node - The scenario node.context - The context.result - The result set.
SpecRunnerException - On calling errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||