1 
2 import cpp11_ref_qualifiers.*;
3 
4 public class cpp11_ref_qualifiers_runme {
5 
6   static {
7     try {
8       System.loadLibrary("cpp11_ref_qualifiers");
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);
11       System.exit(1);
12     }
13   }
14 
main(String argv[])15   public static void main(String argv[]) {
16     Host h = new Host();
17 
18     // Basic testing
19     h.h1();
20     h.h2();
21     h.h6();
22     h.h7();
23 
24     h.h();
25 
26     // %feature testing
27     Features f = new Features();
28     if (!f.F1().equals("F1")) throw new RuntimeException("Fail");
29     if (!f.F2().equals("F2")) throw new RuntimeException("Fail");
30     if (!f.F3().equals("F3")) throw new RuntimeException("Fail");
31 
32     if (!f.C1(0).equals("C1")) throw new RuntimeException("Fail");
33     if (!f.C2(0).equals("C2")) throw new RuntimeException("Fail");
34     if (!f.C3(0).equals("C3")) throw new RuntimeException("Fail");
35 
36     // %rename testing
37     Renames r = new Renames();
38     r.RR1();
39     r.RR2();
40     r.RR3();
41 
42     r.SS1(0);
43     r.SS2(0);
44     r.SS3(0);
45 
46     // Conversion operators
47     String s = null;
48     ConversionOperators co = new ConversionOperators();
49     s = co.StringConvertCopy();
50     s = co.StringConvertMove();
51 
52     ConversionOperators2 co2 = new ConversionOperators2();
53     s = co2.StringConvertMove();
54   }
55 }
56 
57