public class PluginEquals extends AbstractPluginDual
comparator.| Modifier and Type | Field and Description |
|---|---|
protected Throwable |
error
Error object after failure.
|
onstarteval, valuescopenameFEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_NORMALIZER, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_TIMEOUT, FEATURE_WAITparameters| Constructor and Description |
|---|
PluginEquals() |
| Modifier and Type | Method and Description |
|---|---|
ActionType |
getActionType()
Get the plugin type.
|
protected Throwable |
getError()
Gets the error, if the
operation returns false. |
protected boolean |
operation(Object object,
IContext context)
Stand for the testing operation.
|
void |
setValue(Object value)
Sets the value.
|
protected boolean |
verify(IContext context,
IComparator comparator,
Object expected,
Object received)
Verify the condition.
|
doEnd, doStart, getObjectValue, getOnstart, perform, setOnstartgetValue, getValue, isEval, setEvalgetScope, saveGlobal, saveLocal, saveStrict, setScopegetName, setNamecopy, getCondition, getConditionModel, getNormalized, getNormalized, getNormalizer, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, initialize, setCondition, setConditionModel, setNormalized, setNormalizer, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel, toStringgetParameters, setParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParameters, setParametersprotected Throwable error
public ActionType getActionType()
IActionTypepublic void setValue(Object value)
AbstractPluginValuesetValue in class AbstractPluginValuevalue - A new value.protected boolean operation(Object object, IContext context) throws PluginException
AbstractPluginDualoperation in class AbstractPluginDualobject - The value to be used.context - The context.PluginException - On operation errors.protected boolean verify(IContext context, IComparator comparator, Object expected, Object received) throws SpecRunnerException
context - The context.comparator - Comparator.expected - The reference value.received - The received value.SpecRunnerException - On condition errors.protected Throwable getError()
AbstractPluginDualoperation returns false.getError in class AbstractPluginDualCopyright © 2016. All rights reserved.