// Test case to check typemaps in various.i import java_lib_various.*; public class java_lib_various_runme { static { try { System.loadLibrary("java_lib_various"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e); System.exit(1); } } public static void main(String argv[]) { // STRING_ARRAY typemap parameter String animals[] = {"Cat","Dog","Cow","Goat"}; if (java_lib_various.check_animals(animals) != 1) throw new RuntimeException("check_animals failed"); // STRING_ARRAY typemap return value String expected[] = { "Dave", "Mike", "Susan", "John", "Michelle" }; String got[] = java_lib_various.get_names(); for (int i=0; i