PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/java/wallkw_runme.java

#
Java | 27 lines | 23 code | 4 blank | 0 comment | 5 complexity | a2121b0045f17d48f0ed364bdba1a8b2 MD5 | raw file
 1
 2import wallkw.*;
 3
 4public class wallkw_runme {
 5
 6  static {
 7    try {
 8	System.loadLibrary("wallkw");
 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
15  public static void main(String argv[]) {
16    if (!wallkw.c_clone().equals("clone"))
17      throw new RuntimeException("clone_c keyword fail");
18    if (!wallkw._delegate().equals("delegate"))
19      throw new RuntimeException("delegate keyword fail");
20    if (!wallkw._pass().equals("pass"))
21      throw new RuntimeException("pass keyword fail");
22    if (!wallkw._alias().equals("alias"))
23      throw new RuntimeException("alias keyword fail");
24    if (!wallkw.C_rescue().equals("rescue"))
25      throw new RuntimeException("rescue keyword fail");
26  }
27}