// Build and execute the test program in non-threaded mode.
buildTestProgram(inputPolicies, argTypes);
executeTestProgram(inputValues, false);
// The returned value node won't have a type expression set, so it's up to us to do it.
ValueNode outputValueNode = getOutputValueNode();
if (outputValueNode == null) {
String errorString = "Null value executing text: " + getTarget().getTargetDef(null, currentModuleTypeInfo).toString();
GemCutter.CLIENT_LOGGER.log(Level.WARNING, errorString);
return null;
}
if (error != null) {
String errorString = "Null value executing text: " + getTarget().getTargetDef(null, currentModuleTypeInfo).toString();
GemCutter.CLIENT_LOGGER.log(Level.WARNING, errorString, error);
return null;
}
ValueNode returnNode = outputValueNode.copyValueNode();
returnNode.setOutputJavaValue(executionResult);
return returnNode;
}
}