From 5f44ac3e543e24fd9efc5025830ebc671b85f8dc Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Tue, 13 Oct 2009 21:40:10 +0200 Subject: Fixed NAR-59 --- src/it/it-parent/pom.xml | 15 ++++++++++++- .../test/java/it0003/test/HelloWorldJNITest.java | 25 +++------------------ .../java/it0004/test/HelloWorldJavaDepJNITest.java | 24 +++----------------- .../java/it0005/test/HelloWorldStaticJNITest.java | 24 +++----------------- .../java/it0006/test/HelloThirdPartyJNITest.java | 24 +++----------------- .../it0009/test/HelloWorldSharedLibJNITest.java | 25 +++------------------ .../it0012/test/HelloWorldSharedLibJNITest.java | 26 ++++------------------ 7 files changed, 33 insertions(+), 130 deletions(-) (limited to 'src/it') diff --git a/src/it/it-parent/pom.xml b/src/it/it-parent/pom.xml index 44a0010..c6fe072 100644 --- a/src/it/it-parent/pom.xml +++ b/src/it/it-parent/pom.xml @@ -56,12 +56,25 @@ under the License. + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + + + + junit junit - 3.8.2 + 4.7 test diff --git a/src/it/it0003-jni/src/test/java/it0003/test/HelloWorldJNITest.java b/src/it/it0003-jni/src/test/java/it0003/test/HelloWorldJNITest.java index cfbf1db..718acb4 100644 --- a/src/it/it0003-jni/src/test/java/it0003/test/HelloWorldJNITest.java +++ b/src/it/it0003-jni/src/test/java/it0003/test/HelloWorldJNITest.java @@ -20,35 +20,16 @@ package it0003.test; */ import it0003.HelloWorldJNI; -import junit.framework.*; - +import org.junit.Assert; +import org.junit.Test; 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(); - } - + @Test public void testNativeHelloWorldJNI() throws Exception { HelloWorldJNI app = new HelloWorldJNI(); - Assert.assertEquals( "Hello NAR World!", app.sayHello() ); } } diff --git a/src/it/it0004-java-dep-jni/src/test/java/it0004/test/HelloWorldJavaDepJNITest.java b/src/it/it0004-java-dep-jni/src/test/java/it0004/test/HelloWorldJavaDepJNITest.java index 7eda5ec..00686d6 100644 --- a/src/it/it0004-java-dep-jni/src/test/java/it0004/test/HelloWorldJavaDepJNITest.java +++ b/src/it/it0004-java-dep-jni/src/test/java/it0004/test/HelloWorldJavaDepJNITest.java @@ -19,31 +19,13 @@ package it0004.test; * under the License. */ -import junit.framework.*; - import it0003.HelloWorldJNI; +import org.junit.Assert; +import org.junit.Test; public class HelloWorldJavaDepJNITest - extends TestCase { - - public HelloWorldJavaDepJNITest( String name ) - { - super( name ); - } - - protected void setUp() - throws Exception - { - super.setUp(); - } - - protected void tearDown() - throws Exception - { - super.tearDown(); - } - + @Test public void testNativeHelloWorldJavaDepJNI() throws Exception { diff --git a/src/it/it0005-jni-static/src/test/java/it0005/test/HelloWorldStaticJNITest.java b/src/it/it0005-jni-static/src/test/java/it0005/test/HelloWorldStaticJNITest.java index 45cb048..50d45fe 100644 --- a/src/it/it0005-jni-static/src/test/java/it0005/test/HelloWorldStaticJNITest.java +++ b/src/it/it0005-jni-static/src/test/java/it0005/test/HelloWorldStaticJNITest.java @@ -20,30 +20,12 @@ package it0005.test; */ import it0005.HelloWorldStaticJNI; -import junit.framework.Assert; -import junit.framework.TestCase; +import org.junit.Assert; +import org.junit.Test; public class HelloWorldStaticJNITest - extends TestCase { - - public HelloWorldStaticJNITest( String name ) - { - super( name ); - } - - protected void setUp() - throws Exception - { - super.setUp(); - } - - protected void tearDown() - throws Exception - { - super.tearDown(); - } - + @Test public void testNativeHelloWorldJNI() throws Exception { diff --git a/src/it/it0006-jni-3rdparty/src/test/java/it0006/test/HelloThirdPartyJNITest.java b/src/it/it0006-jni-3rdparty/src/test/java/it0006/test/HelloThirdPartyJNITest.java index db6b80c..178cdef 100644 --- a/src/it/it0006-jni-3rdparty/src/test/java/it0006/test/HelloThirdPartyJNITest.java +++ b/src/it/it0006-jni-3rdparty/src/test/java/it0006/test/HelloThirdPartyJNITest.java @@ -20,30 +20,12 @@ package it0006.test; */ import it0003.HelloWorldJNI; -import junit.framework.Assert; -import junit.framework.TestCase; +import org.junit.Assert; +import org.junit.Test; 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(); - } - + @Test public void testNativeHelloThirdPartyJNI() throws Exception { diff --git a/src/it/it0009-jni-dep-lib-shared/src/test/java/it0009/test/HelloWorldSharedLibJNITest.java b/src/it/it0009-jni-dep-lib-shared/src/test/java/it0009/test/HelloWorldSharedLibJNITest.java index 5b9adc9..e1e9af1 100644 --- a/src/it/it0009-jni-dep-lib-shared/src/test/java/it0009/test/HelloWorldSharedLibJNITest.java +++ b/src/it/it0009-jni-dep-lib-shared/src/test/java/it0009/test/HelloWorldSharedLibJNITest.java @@ -20,31 +20,12 @@ package it0009.test; */ import it0009.HelloWorldSharedLibJNI; -import junit.framework.Assert; -import junit.framework.TestCase; - +import org.junit.Assert; +import org.junit.Test; public class HelloWorldSharedLibJNITest - extends TestCase { - - public HelloWorldSharedLibJNITest( String name ) - { - super( name ); - } - - protected void setUp() - throws Exception - { - super.setUp(); - } - - protected void tearDown() - throws Exception - { - super.tearDown(); - } - + @Test public void testNativeHelloWorldSharedLibJNI() throws Exception { diff --git a/src/it/it0012-jni-dep-lib-static/src/test/java/it0012/test/HelloWorldSharedLibJNITest.java b/src/it/it0012-jni-dep-lib-static/src/test/java/it0012/test/HelloWorldSharedLibJNITest.java index b3aac5c..28dedd1 100644 --- a/src/it/it0012-jni-dep-lib-static/src/test/java/it0012/test/HelloWorldSharedLibJNITest.java +++ b/src/it/it0012-jni-dep-lib-static/src/test/java/it0012/test/HelloWorldSharedLibJNITest.java @@ -1,4 +1,5 @@ package it0012.test; + /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file @@ -19,31 +20,12 @@ package it0012.test; */ import it0012.HelloWorldSharedLibJNI; -import junit.framework.Assert; -import junit.framework.TestCase; - +import org.junit.Assert; +import org.junit.Test; public class HelloWorldSharedLibJNITest - extends TestCase { - - public HelloWorldSharedLibJNITest( String name ) - { - super( name ); - } - - protected void setUp() - throws Exception - { - super.setUp(); - } - - protected void tearDown() - throws Exception - { - super.tearDown(); - } - + @Test public void testNativeHelloWorldSharedLibJNI() throws Exception { -- cgit v1.2.3