org.specrunner.plugins.core
Class AbstractPluginTable
java.lang.Object
org.specrunner.parameters.core.ParameterHolder
org.specrunner.plugins.core.AbstractPlugin
org.specrunner.plugins.core.AbstractPluginNamed
org.specrunner.plugins.core.AbstractPluginScoped
org.specrunner.plugins.core.AbstractPluginTable
- All Implemented Interfaces:
- IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
- Direct Known Subclasses:
- AbstractPluginObject, PluginColumn, PluginMap
public abstract class AbstractPluginTable
- extends AbstractPluginScoped
Adapter for plugins on tables.
- Author:
- Thiago Santos
| Methods inherited from class org.specrunner.plugins.core.AbstractPlugin |
copy, getCondition, getConditionModel, getNormalized, getNormalized, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, setCondition, setConditionModel, setNormalized, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel |
AbstractPluginTable
public AbstractPluginTable()
initialize
public void initialize(IContext context)
throws PluginException
- Description copied from interface:
IPlugin
- Initialize the plugin. Performed after set parameters.
- Specified by:
initialize in interface IPlugin- Overrides:
initialize in class AbstractPlugin
- Parameters:
context - The test context.
- Throws:
PluginException - On initialization errors.
initialize
public void initialize(IContext context,
TableAdapter table)
throws PluginException
- Initialize helper.
- Parameters:
context - The context.table - The adapter.
- Throws:
PluginException - On initialization errors.
doStart
public ENext doStart(IContext context,
IResultSet result)
throws PluginException
- Description copied from interface:
IPlugin
- Performs the start action. i.e. create a database schema. Performed after
initialization.
- Specified by:
doStart in interface IPlugin- Overrides:
doStart in class AbstractPlugin
- Parameters:
context - The context.result - The result set.
- Returns:
- SKIP, to skip node, DEEP, to go deep into the node.
- Throws:
PluginException - On execution errors.
doStart
public ENext doStart(IContext context,
IResultSet result,
TableAdapter tableAdapter)
throws PluginException
- Perform the plugin start action.
- Parameters:
context - The context.result - The result.tableAdapter - The adapter.
- Returns:
- The next action to be taken.
- Throws:
PluginException - On plugin errors.
doEnd
public void doEnd(IContext context,
IResultSet result)
throws PluginException
- Description copied from interface:
IPlugin
- The end action. i.e. after a loop specification perform something in a
newly generated table. Performed after doStart().
- Specified by:
doEnd in interface IPlugin- Overrides:
doEnd in class AbstractPlugin
- Parameters:
context - The context.result - The result set.
- Throws:
PluginException - On execution errors.
doEnd
public void doEnd(IContext context,
IResultSet result,
TableAdapter tableAdapter)
throws PluginException
- Perform an ending action.
- Parameters:
context - The context.result - The result set.tableAdapter - The adapter.
- Throws:
PluginException - On plugin errors.
toString
public String toString()
- Overrides:
toString in class AbstractPlugin
Copyright © 2014. All rights reserved.