/trunk/Examples/test-suite/java/typemap_namespace_runme.java
Java | 21 lines | 18 code | 3 blank | 0 comment | 2 complexity | 4854c57f292254994f7c68eaba2d3c08 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- import typemap_namespace.*;
- public class typemap_namespace_runme {
- static {
- try {
- System.loadLibrary("typemap_namespace");
- } 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[]) throws Throwable
- {
- if (!typemap_namespace.test1("hello").equals("hello"))
- throw new RuntimeException("test1 failed");
- if (!typemap_namespace.test2("hello").equals("hello"))
- throw new RuntimeException("test2 failed");
- }
- }