org.specrunner.listeners.core
Class AbstractScenarioWrapperBeforeListener

java.lang.Object
  extended by org.specrunner.listeners.core.AbstractScenarioWrapperListener
      extended by org.specrunner.listeners.core.AbstractScenarioWrapperBeforeListener
All Implemented Interfaces:
IScenarioListener

public abstract class AbstractScenarioWrapperBeforeListener
extends AbstractScenarioWrapperListener

Wrapp a scenario with a start tag.

Author:
Thiago Santos

Constructor Summary
AbstractScenarioWrapperBeforeListener()
           
 
Method Summary
 void beforeScenario(String title, nu.xom.Node node, IContext context, IResultSet result, Object instance)
          Perform something before each scenario.
protected  Class<? extends IPlugin> getOnEnd()
          On end plugin type.
protected  String getOnEndMessage()
          Get on end message.
 
Methods inherited from class org.specrunner.listeners.core.AbstractScenarioWrapperListener
afterScenario, append, createElement, getOnStart, getOnStartMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractScenarioWrapperBeforeListener

public AbstractScenarioWrapperBeforeListener()
Method Detail

beforeScenario

public void beforeScenario(String title,
                           nu.xom.Node node,
                           IContext context,
                           IResultSet result,
                           Object instance)
                    throws SpecRunnerException
Description copied from interface: IScenarioListener
Perform something before each scenario.

Specified by:
beforeScenario in interface IScenarioListener
Overrides:
beforeScenario in class AbstractScenarioWrapperListener
Parameters:
title - The scenario title.
node - The scenario node.
context - The test context.
result - The result set.
instance - The fixture object, if it exists, null, otherwise.
Throws:
SpecRunnerException - Exception for scenarios.

getOnEnd

protected Class<? extends IPlugin> getOnEnd()
Description copied from class: AbstractScenarioWrapperListener
On end plugin type.

Specified by:
getOnEnd in class AbstractScenarioWrapperListener
Returns:
A type.

getOnEndMessage

protected String getOnEndMessage()
Description copied from class: AbstractScenarioWrapperListener
Get on end message.

Specified by:
getOnEndMessage in class AbstractScenarioWrapperListener
Returns:
A message.


Copyright © 2015. All rights reserved.