From 79e0951cfdb5fb2371df23edeaf7f8957b0ee3f5 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sun, 18 Oct 2009 19:17:30 +0200 Subject: added first JUnit test: GlueGenTest.java. (dependencies: junit-4.5.jar, antlr-2.7.7.jar in /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. --- test/junit/com/sun/gluegen/test.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/junit/com/sun/gluegen/test.c (limited to 'test/junit/com/sun/gluegen/test.c') 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; +} -- cgit v1.2.3