|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.parameters.core.ParameterHolder
org.specrunner.plugins.core.AbstractPlugin
org.specrunner.plugins.core.AbstractPluginNamed
org.specrunner.plugins.core.AbstractPluginScoped
org.specrunner.plugins.core.AbstractPluginValue
org.specrunner.plugins.core.AbstractPluginDual
public abstract class AbstractPluginDual
A generic plugin which performs a test, it the result is true, a success result is added, otherwise adds an error to the result.
| Field Summary |
|---|
| Fields inherited from class org.specrunner.plugins.core.AbstractPlugin |
|---|
FEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_TIMEOUT, FEATURE_WAIT |
| Constructor Summary | |
|---|---|
AbstractPluginDual()
|
|
| Method Summary | |
|---|---|
void |
doEnd(IContext context,
IResultSet result)
The end action. i.e. after a loop specification perform something in a newly generated table. |
ENext |
doStart(IContext context,
IResultSet result)
Performs the start action. i.e. create a database schema. |
protected abstract Throwable |
getError()
Gets the error, if the operation returns false. |
protected Object |
getObjectValue(IContext context,
nu.xom.Node node)
Default behavior. |
Boolean |
getOnstart()
Get if execute on start. |
protected abstract boolean |
operation(Object obj,
IContext context)
Stand for the testing operation. |
protected ENext |
perform(IContext context,
IResultSet result)
Perform plugin action/assertion. |
void |
setOnstart(Boolean onstart)
Set on start flag. |
| Methods inherited from class org.specrunner.plugins.core.AbstractPluginValue |
|---|
getValue, getValue, isEval, setEval, setValue |
| Methods inherited from class org.specrunner.plugins.core.AbstractPluginScoped |
|---|
getScope, saveGlobal, saveLocal, saveStrict, setScope |
| Methods inherited from class org.specrunner.plugins.core.AbstractPluginNamed |
|---|
getName, setName |
| Methods inherited from class org.specrunner.plugins.core.AbstractPlugin |
|---|
copy, getCondition, getConditionModel, getNormalized, getNormalized, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, initialize, setCondition, setConditionModel, setNormalized, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel, toString |
| Methods inherited from class org.specrunner.parameters.core.ParameterHolder |
|---|
getParameters, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.specrunner.parameters.IParameterHolder |
|---|
getParameters, setParameters |
| Methods inherited from interface org.specrunner.plugins.IActionType |
|---|
getActionType |
| Constructor Detail |
|---|
public AbstractPluginDual()
| Method Detail |
|---|
public Boolean getOnstart()
public void setOnstart(Boolean onstart)
onstart - On start execution.
public ENext doStart(IContext context,
IResultSet result)
throws PluginException
IPlugin
doStart in interface IPlugindoStart in class AbstractPlugincontext - The context.result - The result set.
PluginException - On execution errors.
public void doEnd(IContext context,
IResultSet result)
throws PluginException
IPlugin
doEnd in interface IPlugindoEnd in class AbstractPlugincontext - The context.result - The result set.
PluginException - On execution errors.
protected ENext perform(IContext context,
IResultSet result)
throws PluginException
context - The context.result - The result.
PluginException - On plugin execution errors.
protected Object getObjectValue(IContext context,
nu.xom.Node node)
throws PluginException
context - The context.node - The node.
PluginException - On evaluation errors.
protected abstract boolean operation(Object obj,
IContext context)
throws PluginException
obj - The value to be used.context - The context.
PluginException - On operation errors.protected abstract Throwable getError()
operation returns false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||