diff options
author | Michael Bien <[email protected]> | 2009-10-18 19:17:30 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-10-18 19:17:30 +0200 |
commit | 79e0951cfdb5fb2371df23edeaf7f8957b0ee3f5 (patch) | |
tree | 7399468d4078c959d99346ba6f90934111e8d031 /test/junit/com/sun/gluegen/test.c | |
parent | 23597f78174c318febf35337338890c3665a13c7 (diff) |
added first JUnit test: GlueGenTest.java. (dependencies: junit-4.5.jar, antlr-2.7.7.jar in <gluegenroot>/lib)
Test tests the basic GlueGen lifecycle: generate->compile java->compile native->load lib->call methods
integrated test compile,run and debug targets into NetBeans IDE.
Diffstat (limited to 'test/junit/com/sun/gluegen/test.c')
-rw-r--r-- | test/junit/com/sun/gluegen/test.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/junit/com/sun/gluegen/test.c b/test/junit/com/sun/gluegen/test.c new file mode 100644 index 0000000..d8c26a1 --- /dev/null +++ b/test/junit/com/sun/gluegen/test.c @@ -0,0 +1,17 @@ +#include "test.h" + +int arrayTest(long context, foo * array) { + return 42; +} + +int bufferTest(void * object) { + return 42; +} + +int mixedTest(long context, void * object, foo * array){ + return 42; +} + +int doubleTest(long context, void * object1, foo * array1, void * object2, foo * array2) { + return 42; +} |