public class FWDEngineDescriptor extends AbstractBranchTestDescriptor
org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor, org.junit.platform.engine.support.hierarchical.Node.ExecutionMode, org.junit.platform.engine.support.hierarchical.Node.Invocation<C extends org.junit.platform.engine.support.hierarchical.EngineExecutionContext>, org.junit.platform.engine.support.hierarchical.Node.SkipResult| Modifier and Type | Field and Description |
|---|---|
private static ConsoleHelper |
consoleHelper
Switch between the shell and program terminal modes in ChUI.
|
parent| Constructor and Description |
|---|
FWDEngineDescriptor()
Default constructor for de-serialization only,
must never be used by applications.
|
FWDEngineDescriptor(org.junit.platform.engine.UniqueId uniqueId)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp(FWDEngineExecutionContext context)
Clean up the supplied
context after execution. |
org.junit.platform.engine.support.hierarchical.Node.ExecutionMode |
getExecutionMode()
Get the preferred of
execution mode for
parallel execution of this node.
|
FWDEngineExecutionContext |
prepare(FWDEngineExecutionContext context)
Prepare the supplied
context prior to execution. |
void |
removeFromHierarchy()
Remove this non-root descriptor from its parent and remove all the
children from this descriptor.
|
addChild, findByUniqueId, getChildren, getType, readExternal, removeChild, writeExternalafter, afterImpl, before, beforeImpl, callLFMethodsImpl, callMethodImpl, callMethodImpl, checkInstance, cleanUpImpl, execute, executeImpl, getTags, getTags, getTestObject, prepareImpl, toStringequals, getDisplayName, getParent, getSource, getUniqueId, hashCode, print, setParentclone, finalize, getClass, notify, notifyAll, wait, wait, waitaround, getExclusiveResources, nodeFinished, nodeSkipped, shouldBeSkippedprivate static final ConsoleHelper consoleHelper
public FWDEngineDescriptor()
public FWDEngineDescriptor(org.junit.platform.engine.UniqueId uniqueId)
uniqueId - the UniqueId for the described TestEngine;
never nullpublic void cleanUp(FWDEngineExecutionContext context) throws ErrorConditionException, org.opentest4j.AssertionFailedError
context after execution.
Reset the test class instance.
cleanUp in interface org.junit.platform.engine.support.hierarchical.Node<FWDEngineExecutionContext>cleanUp in class AbstractFWDTestDescriptorcontext - the context to execute inErrorConditionExceptionorg.opentest4j.AssertionFailedErrorprepare(com.goldencode.p2j.testengine.FWDEngineExecutionContext)public org.junit.platform.engine.support.hierarchical.Node.ExecutionMode getExecutionMode()
nullNode.ExecutionModepublic FWDEngineExecutionContext prepare(FWDEngineExecutionContext context) throws ErrorConditionException, org.opentest4j.AssertionFailedError
context prior to execution.
Create test class instance.
prepare in interface org.junit.platform.engine.support.hierarchical.Node<FWDEngineExecutionContext>prepare in class AbstractFWDTestDescriptorErrorConditionExceptionorg.opentest4j.AssertionFailedErrorcleanUp(com.goldencode.p2j.testengine.FWDEngineExecutionContext)public void removeFromHierarchy()
If this method is invoked on a root descriptor,
this method must throw a JUnitException
explaining that a root cannot be removed from the
hierarchy.
removeFromHierarchy in interface org.junit.platform.engine.TestDescriptorremoveFromHierarchy in class AbstractBranchTestDescriptor