PageRenderTime 44ms CodeModel.GetById 21ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. import wallkw.*;
  2. public class wallkw_runme {
  3. static {
  4. try {
  5. System.loadLibrary("wallkw");
  6. } catch (UnsatisfiedLinkError e) {
  7. 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);
  8. System.exit(1);
  9. }
  10. }
  11. public static void main(String argv[]) {
  12. if (!wallkw.c_clone().equals("clone"))
  13. throw new RuntimeException("clone_c keyword fail");
  14. if (!wallkw._delegate().equals("delegate"))
  15. throw new RuntimeException("delegate keyword fail");
  16. if (!wallkw._pass().equals("pass"))
  17. throw new RuntimeException("pass keyword fail");
  18. if (!wallkw._alias().equals("alias"))
  19. throw new RuntimeException("alias keyword fail");
  20. if (!wallkw.C_rescue().equals("rescue"))
  21. throw new RuntimeException("rescue keyword fail");
  22. }
  23. }