public class ScenarioCleanerListener extends Object implements IScenarioListener
| Constructor and Description |
|---|
ScenarioCleanerListener() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void beforeScenario(String title, nu.xom.Node node, IContext context, IResultSet result, Object instance) throws SpecRunnerException
IScenarioListenerbeforeScenario 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
IScenarioListenerafterScenario 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.Copyright © 2016. All rights reserved.