public class FWDClassTestDescriptor extends AbstractClassTestDescriptor
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 |
|---|---|
(package private) object<?> |
testInstance
Test class instance to invoke the method on.
|
afterAll, beforeAll, clazzparent| Constructor and Description |
|---|
FWDClassTestDescriptor()
Default constructor, required for de-serialization
|
FWDClassTestDescriptor(java.lang.Class clazz,
org.junit.platform.engine.TestDescriptor parent,
java.util.List<java.lang.reflect.Method> test,
java.util.List<java.lang.reflect.Method> beforeEach,
java.util.List<java.lang.reflect.Method> afterEach,
java.util.List<java.lang.reflect.Method> beforeAll,
java.util.List<java.lang.reflect.Method> afterAll,
object<?> instance)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected BaseDataType |
callMethodImpl(java.lang.reflect.Method method,
java.lang.Object o,
CallParameter[] args)
Call 4gl class instance or static method.
|
void |
cleanUpImpl()
Clean up the supplied
context after execution implementation. |
private static java.lang.String |
displayName(java.lang.Class<?> clazz)
Compute the display name as the fully qualified legacy class name.
|
protected java.lang.Object |
getTestObject()
Get test object.
|
private static java.lang.reflect.Method |
lookupFixture(java.lang.Class<?> clazz,
Test test)
Test if a method marked as using a fixture, if yes find the referenced fixture method.
|
void |
prepareImpl()
Prepare the supplied
context prior to execution implementation. |
afterImpl, beforeImpl, getSource, print, readExternal, sort, writeExternaladdChild, findByUniqueId, getChildren, getType, removeChild, removeFromHierarchyafter, before, callLFMethodsImpl, callMethodImpl, checkInstance, cleanUp, execute, executeImpl, getTags, getTags, prepare, toStringequals, getDisplayName, getParent, getUniqueId, hashCode, setParentclone, finalize, getClass, notify, notifyAll, wait, wait, waitaround, getExclusiveResources, getExecutionMode, nodeFinished, nodeSkipped, shouldBeSkippedtransient object<?> testInstance
public FWDClassTestDescriptor()
FWDClassTestDescriptor(java.lang.Class clazz,
org.junit.platform.engine.TestDescriptor parent,
java.util.List<java.lang.reflect.Method> test,
java.util.List<java.lang.reflect.Method> beforeEach,
java.util.List<java.lang.reflect.Method> afterEach,
java.util.List<java.lang.reflect.Method> beforeAll,
java.util.List<java.lang.reflect.Method> afterAll,
object<?> instance)
clazz - the Java classparent - the parent descriptortest - class methods marked as testsbeforeEach - class methods marked to execute before each testafterEach - class methods marked to execute after each testbeforeAll - class methods marked to execute before all testsafterAll - class methods marked to execute after all testsinstance - the test instance if it is known at the moment, otherwise nullprivate static final java.lang.String displayName(java.lang.Class<?> clazz)
clazz - the Java classprivate static java.lang.reflect.Method lookupFixture(java.lang.Class<?> clazz,
Test test)
Throw an error if the fixture cannot be found
clazz - the class of the test methodtest - the Test annotationnull if the argument method does not use a data
provider or no unique matching provider foundpublic void cleanUpImpl()
context after execution implementation.
Reset the test class instance.
cleanUpImpl in class AbstractFWDTestDescriptorAbstractFWDTestDescriptor.prepare(com.goldencode.p2j.testengine.FWDEngineExecutionContext)public void prepareImpl()
context prior to execution implementation.prepareImpl in class AbstractFWDTestDescriptorcleanUpImpl()protected BaseDataType callMethodImpl(java.lang.reflect.Method method, java.lang.Object o, CallParameter[] args)
callMethodImpl in class AbstractFWDTestDescriptormethod - the Java method to callo - the class instance to invoke the method on, or null to call a static methodargs - method call arguments or null for no parametersnull if method returns VOIDprotected java.lang.Object getTestObject()
The value should be null if the test method is a static legacy class method.
getTestObject in class AbstractFWDTestDescriptornull