public final class TestExecutionSupport
extends java.lang.Object
| Constructor and Description |
|---|
TestExecutionSupport() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static object<? extends _BaseObject_> |
callClassMethod(java.lang.reflect.Method method,
object<?> o,
CallParameter[] parameters)
Call a legacy class method.
|
(package private) static void |
callProcedureMethod(java.lang.reflect.Method method,
handle h)
Call a legacy internal procedure.
|
(package private) static object<? extends _BaseObject_> |
doInBlock(java.util.function.Supplier<object<? extends _BaseObject_>> action)
Execute block body, catch and re-throw legacy errors including converted from ordinary errors.
|
static final object<? extends _BaseObject_> callClassMethod(java.lang.reflect.Method method, object<?> o, CallParameter[] parameters) throws ErrorConditionException, LegacyErrorException
method - the Java method converted from the legacy class methodo - the legacy class instance or null for a static methodparameters - method arguments, null for no argumentsnull for methods returning VOID
or if an error was raisedErrorConditionException - errors are not caught by this methodLegacyErrorException - legacy errors are not caught by this methodstatic final void callProcedureMethod(java.lang.reflect.Method method,
handle h)
throws ErrorConditionException,
LegacyErrorException
method - the Java method converted from the legacy internal procedureh - the persistent procedure handleErrorConditionException - by the executed legacy codeLegacyErrorException - legacy errors are not caught by this methodstatic final object<? extends _BaseObject_> doInBlock(java.util.function.Supplier<object<? extends _BaseObject_>> action) throws ErrorConditionException, LegacyErrorException
action - the code to execute. Must return either an object instance or null
for code returning nothingErrorConditionException - errors are not caught by this methodLegacyErrorException - legacy errors are not caught by this method