generateDataTest: Create a Java program to test R - Java data type mapping
Description
The generateDataTest function is used to validate the results
of function generateDataMap. Given the name of a R data
type, and the lookup environment updated by
generateDataMap, function generateDataTest creates a test
program in Java. The test program creates a java companion of the R data
type, converts it to the R data type, and converts it back to Java. This
round-trip can test both the Java bean and the convert functions.
Name of web service; used to generate class name and
properties files.
mainPkg
Package name, used in Java package hierarchy and
usually the same as the R package name where the data object is
defined.
lookup
environment containing mapping between R and Java types;
see generateDataMap
addonType
character. Additional types required for creating the
data test,e.g., to test conversion of an R list containing
particular S4 classes requires that the particular classes be named
as addonType.