2 import director_default.*;
4 public class director_default_runme {
8 System.loadLibrary("director_default");
9 } catch (UnsatisfiedLinkError e) {
10 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);
15 public static void main(String argv[]) {
17 director_default_MyFoo a = new director_default_MyFoo();
18 a = new director_default_MyFoo(10);
21 director_default_MyFoo a = new director_default_MyFoo();
22 if (!a.GetMsg().equals("director_default_MyFoo-default")) {
23 throw new RuntimeException ( "Test 1 failed" );
25 if (!a.GetMsg("boo").equals("director_default_MyFoo-boo")) {
26 throw new RuntimeException ( "Test 2 failed" );
30 if (!b.GetMsg().equals("Foo-default")) {
31 throw new RuntimeException ( "Test 1 failed" );
33 if (!b.GetMsg("boo").equals("Foo-boo")) {
34 throw new RuntimeException ( "Test 2 failed" );
40 class director_default_MyFoo extends Foo {
41 public director_default_MyFoo() {
44 public director_default_MyFoo(int i) {
47 public String Msg(String msg) {
48 return "director_default_MyFoo-" + msg;