From 1b3f5eb617863b4d4c2e1c29b48a1efba2bdf5ff Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Sat, 3 Oct 2009 14:53:01 +0200 Subject: Added test 3 --- .../src/test/java/HelloWorldJNITest.java | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/it/it0003-jni/src/test/java/HelloWorldJNITest.java (limited to 'src/it/it0003-jni/src/test/java') diff --git a/src/it/it0003-jni/src/test/java/HelloWorldJNITest.java b/src/it/it0003-jni/src/test/java/HelloWorldJNITest.java new file mode 100644 index 0000000..683c321 --- /dev/null +++ b/src/it/it0003-jni/src/test/java/HelloWorldJNITest.java @@ -0,0 +1,25 @@ +import junit.framework.*; + +import com.mycompany.mypackage.HelloWorldJNI; + +public class HelloWorldJNITest extends TestCase { + + public HelloWorldJNITest(String name) { + super(name); + } + + protected void setUp() throws Exception { + super.setUp(); + } + + protected void tearDown() throws Exception { + super.tearDown(); + } + + public void testNativeHelloWorldJNI() throws Exception { + HelloWorldJNI app = new HelloWorldJNI(); + + this.assertEquals( "Hello NAR World!", app.sayHello() ); + } +} + -- cgit v1.2.3