org.specrunner.plugins.core.logical
Class PluginCompareTree
java.lang.Object
org.specrunner.parameters.core.ParameterHolder
org.specrunner.plugins.core.AbstractPlugin
org.specrunner.plugins.core.logical.PluginCompareTree
- All Implemented Interfaces:
- IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
public class PluginCompareTree
- extends AbstractPlugin
Perform a comparison of nodes.
- Author:
- Thiago Santos
|
Method Summary |
protected void |
compare(IContext context,
IResultSet result,
nu.xom.Node received,
nu.xom.Node expected)
Compare two nodes. |
void |
doEnd(IContext context,
IResultSet result)
The end action. i.e. after a loop specification perform something in a
newly generated table. |
ActionType |
getActionType()
Get the plugin type. |
protected boolean |
isLeaf(nu.xom.Node root)
Check if a node is leaf, text, or parent of text only. |
| Methods inherited from class org.specrunner.plugins.core.AbstractPlugin |
copy, doStart, 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, toString |
PluginCompareTree
public PluginCompareTree()
getActionType
public ActionType getActionType()
- Description copied from interface:
IActionType
- Get the plugin type.
- Returns:
- The type.
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.
compare
protected void compare(IContext context,
IResultSet result,
nu.xom.Node received,
nu.xom.Node expected)
- Compare two nodes.
- Parameters:
context - The context.result - The result.received - The received node.expected - The expected node.
isLeaf
protected boolean isLeaf(nu.xom.Node root)
- Check if a node is leaf, text, or parent of text only.
- Parameters:
root - The root.
- Returns:
- true, if leaf, false, otherwise.
Copyright © 2015. All rights reserved.