|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.plugins.core.UtilPlugin
public final class UtilPlugin
Plugins utility class.
| Method Summary | ||
|---|---|---|
static void |
compare(nu.xom.Node node,
IPlugin plugin,
IResultSet result,
IComparator comparator,
Object expected,
Object received)
Perform a comparison and add the result to the given node. |
|
static void |
compare(nu.xom.Node node,
IResultSet result,
Object expected,
Object received)
Perform a comparison and add the result to the given node. |
|
static
|
create(IContext context,
Class<T> type,
nu.xom.Element element)
Equivalent to create(... |
|
static
|
create(IContext context,
Class<T> type,
nu.xom.Element element,
boolean initialize)
Creates a plugin based on its type. |
|
static IPlugin |
create(IContext context,
IPlugin instance,
nu.xom.Element element)
Equivalent to create(... |
|
static IPlugin |
create(IContext context,
IPlugin instance,
nu.xom.Element element,
boolean initialize)
Creates a plugin based on its template. |
|
static IPlugin |
destroy(IContext context,
IPlugin plugin,
nu.xom.Element element)
Make plugin sensible to attributes after running. |
|
static void |
performChildren(nu.xom.Node node,
IContext context,
IResultSet result)
Executes the children of a given node. |
|
static void |
performComandsFirst(IContext context,
IResultSet result,
nu.xom.Node element)
Perform children using commands before asserts. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T extends IPlugin> T create(IContext context,
Class<T> type,
nu.xom.Element element)
throws PluginException
create(...,false).
T - A subtype of IPlugin.context - The reference context.type - The plugin type.element - The element to be used as reference for plugin creation.
PluginException - On plugin creation errors.
public static IPlugin create(IContext context,
IPlugin instance,
nu.xom.Element element)
throws PluginException
create(...,false).
context - The reference context.instance - The plugin template instance.element - The element to be used as reference for plugin creation.
PluginException - On plugin creation errors.
public static <T extends IPlugin> T create(IContext context,
Class<T> type,
nu.xom.Element element,
boolean initialize)
throws PluginException
T - A subtype of IPlugin.context - The reference context.type - The plugin type.element - The element to be used as reference for plugin creation.initialize - true, if initialize() should be called, false, otherwise.
PluginException - On plugin creation errors.
public static IPlugin create(IContext context,
IPlugin instance,
nu.xom.Element element,
boolean initialize)
throws PluginException
context - The reference context.instance - The template instance.element - The element to be used as reference for plugin creation.initialize - true, if initialize() should be called, false, otherwise.
PluginException - On plugin creation errors.
public static IPlugin destroy(IContext context,
IPlugin plugin,
nu.xom.Element element)
throws PluginException
context - The context.plugin - The plugin.element - The element.
PluginException - On plugin finalization.
public static void performChildren(nu.xom.Node node,
IContext context,
IResultSet result)
throws PluginException
node - The parent node.context - The context.result - The result set.
PluginException - On execution errors.
public static void performComandsFirst(IContext context,
IResultSet result,
nu.xom.Node element)
throws PluginException
context - The context.result - The result.element - The base element.
PluginException - On execution errors.
public static void compare(nu.xom.Node node,
IResultSet result,
Object expected,
Object received)
throws PluginException
node - Node to be annotated.result - The result set.expected - The expected String.received - The received String
PluginException - On plugin errors.
public static void compare(nu.xom.Node node,
IPlugin plugin,
IResultSet result,
IComparator comparator,
Object expected,
Object received)
throws PluginException
node - Node to be annotated.plugin - The plugin type.result - The result set.comparator - The comparator.expected - The expected String.received - The received String
PluginException - On plugin errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||