From 3b4145fc7829fe7d6023d9da5e7497f26c7df863 Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Mon, 5 Oct 2009 11:36:11 +0200 Subject: Added test it0006-jni-3rdparty --- src/it/it0006-jni-3rdparty/pom.xml | 69 +++++++++++++++++++++ .../lib/libit0003-jni-1.0-SNAPSHOT.jnilib | Bin 0 -> 8648 bytes .../share/it0003-jni-1.0-SNAPSHOT.jar | Bin 0 -> 4450 bytes .../src/test/java/HelloThirdPartyJNITest.java | 25 ++++++++ 4 files changed, 94 insertions(+) create mode 100644 src/it/it0006-jni-3rdparty/pom.xml create mode 100755 src/it/it0006-jni-3rdparty/src/nar/resources/aol/x86_64-MacOSX-g++/lib/libit0003-jni-1.0-SNAPSHOT.jnilib create mode 100644 src/it/it0006-jni-3rdparty/src/nar/resources/aol/x86_64-MacOSX-g++/share/it0003-jni-1.0-SNAPSHOT.jar create mode 100644 src/it/it0006-jni-3rdparty/src/test/java/HelloThirdPartyJNITest.java (limited to 'src/it') diff --git a/src/it/it0006-jni-3rdparty/pom.xml b/src/it/it0006-jni-3rdparty/pom.xml new file mode 100644 index 0000000..65602e6 --- /dev/null +++ b/src/it/it0006-jni-3rdparty/pom.xml @@ -0,0 +1,69 @@ + + + + + + 4.0.0 + + + org.apache.maven.its.nar + it-parent + 1.0-SNAPSHOT + ../it-parent/pom.xml + + + it0006-jni-3rdparty + nar + + Maven NAR Third Party JNI + 1.0-SNAPSHOT + + Java class that uses a 3rd party JNI and its library + + http://maven.apache.org/ + + + + integration-test + + + maven-nar-plugin + true + + + + jni + + + + + + maven-surefire-plugin + + true + + + + + diff --git a/src/it/it0006-jni-3rdparty/src/nar/resources/aol/x86_64-MacOSX-g++/lib/libit0003-jni-1.0-SNAPSHOT.jnilib b/src/it/it0006-jni-3rdparty/src/nar/resources/aol/x86_64-MacOSX-g++/lib/libit0003-jni-1.0-SNAPSHOT.jnilib new file mode 100755 index 0000000..b7e52a4 Binary files /dev/null and b/src/it/it0006-jni-3rdparty/src/nar/resources/aol/x86_64-MacOSX-g++/lib/libit0003-jni-1.0-SNAPSHOT.jnilib differ diff --git a/src/it/it0006-jni-3rdparty/src/nar/resources/aol/x86_64-MacOSX-g++/share/it0003-jni-1.0-SNAPSHOT.jar b/src/it/it0006-jni-3rdparty/src/nar/resources/aol/x86_64-MacOSX-g++/share/it0003-jni-1.0-SNAPSHOT.jar new file mode 100644 index 0000000..f2e29f5 Binary files /dev/null and b/src/it/it0006-jni-3rdparty/src/nar/resources/aol/x86_64-MacOSX-g++/share/it0003-jni-1.0-SNAPSHOT.jar differ diff --git a/src/it/it0006-jni-3rdparty/src/test/java/HelloThirdPartyJNITest.java b/src/it/it0006-jni-3rdparty/src/test/java/HelloThirdPartyJNITest.java new file mode 100644 index 0000000..3ef06f3 --- /dev/null +++ b/src/it/it0006-jni-3rdparty/src/test/java/HelloThirdPartyJNITest.java @@ -0,0 +1,25 @@ +import junit.framework.*; + +import com.mycompany.mypackage.HelloWorldJNI; + +public class HelloThirdPartyJNITest extends TestCase { + + public HelloThirdPartyJNITest(String name) { + super(name); + } + + protected void setUp() throws Exception { + super.setUp(); + } + + protected void tearDown() throws Exception { + super.tearDown(); + } + + public void testNativeHelloThirdPartyJNI() throws Exception { + HelloWorldJNI app = new HelloWorldJNI(); + + this.assertEquals( "Hello NAR World!", app.sayHello() ); + } +} + -- cgit v1.2.3