C - the type of EngineExecutionContext used by the
HierarchicalTestEngine@API(value=Experimental) public interface Node<C extends EngineExecutionContext>
HierarchicalTestEngine| Modifier and Type | Interface and Description |
|---|---|
static class |
Node.SkipResult
The result of determining whether the execution of a given
context
should be skipped. |
| Modifier and Type | Method and Description |
|---|---|
default void |
after(C context)
Execute the after behavior of this node.
|
default C |
before(C context)
Execute the before behavior of this node.
|
default C |
execute(C context)
Execute the behavior of this node.
|
default boolean |
isLeaf()
Determine if this
Node is a leaf in the hierarchy. |
default C |
prepare(C context)
Prepare the supplied
context prior to execution. |
default Node.SkipResult |
shouldBeSkipped(C context)
Determine if the execution of the supplied
context should be
skipped. |
default boolean isLeaf()
Node is a leaf in the hierarchy.
The default implementation returns false.
default C prepare(C context) throws java.lang.Exception
context prior to execution.
The default implementation returns the supplied context unmodified.
java.lang.Exceptiondefault Node.SkipResult shouldBeSkipped(C context) throws java.lang.Exception
context should be
skipped.
The default implementation returns Node.SkipResult.doNotSkip().
java.lang.Exceptiondefault C before(C context) throws java.lang.Exception
This method will be called once before execution of this node.
context - the context to execute injava.lang.Exceptionexecute(C),
after(C)default C execute(C context) throws java.lang.Exception
Containers typically do not implement this method since the
HierarchicalTestEngine handles execution of their children.
default void after(C context) throws java.lang.Exception
This method will be called once after execution of this node.
context - the context to execute injava.lang.Exceptionbefore(C),
execute(C)