diff --git a/build.xml b/build.xml index 307e000acbcbea7b29ae606758ff49a3f4c76191..ccd41462e945a585c0a11a3f277f08fad3176c2c 100644 --- a/build.xml +++ b/build.xml @@ -305,9 +305,9 @@ <target name="test" depends="bind" description="Unit test code"> <echo message="Testing..."/> <taskdef name="testng" classpath="${tooldir}/testng/testng.jar" classname="org.testng.TestNGAntTask" /> - <javac srcdir="test/src" includeantruntime="false" destdir="test/classes" debug="on" classpath="tools/testng/testng.jar" encoding="iso8859-15"> + <!--compilerarg value="-Xlint:all"/--> <classpath refid="classpath"/> </javac> <!-- possible groups: raw=impl+serv+io+onto+omwg, full=raw+ling+sem --> diff --git a/test/src/AlgTest.java b/test/src/AlgTest.java index bd8d0766e0e7cdb783763d7d9cdd5a4d8ce61ba0..4b7edd8c473288de68bd5b7ec77106969e6f7edd 100644 --- a/test/src/AlgTest.java +++ b/test/src/AlgTest.java @@ -24,7 +24,6 @@ import static org.testng.Assert.assertNotNull; import static org.testng.Assert.assertNull; import static org.testng.Assert.assertTrue; import org.testng.annotations.BeforeClass; -import org.testng.annotations.Configuration; import org.testng.annotations.Test; //import org.testng.annotations.*; diff --git a/test/src/JWNLTest.java b/test/src/JWNLTest.java index 85c476347b4887e1e4f606ea7d59ac6422109dcc..e358d4f0659f2891f435a50536b4b2d115bf1875 100644 --- a/test/src/JWNLTest.java +++ b/test/src/JWNLTest.java @@ -23,7 +23,6 @@ import static org.testng.Assert.assertNotNull; import static org.testng.Assert.assertNull; import static org.testng.Assert.assertTrue; import org.testng.annotations.BeforeClass; -import org.testng.annotations.Configuration; import org.testng.annotations.Test; import org.testng.annotations.BeforeSuite; diff --git a/test/src/MatcherTest.java b/test/src/MatcherTest.java index be75873f5c67853097a0381642165be6f6396d00..439f8384570fa049321ddd61268d9f8cc0194f97 100644 --- a/test/src/MatcherTest.java +++ b/test/src/MatcherTest.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2008-2011 + * Copyright (C) INRIA, 2008-2011, 2013 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -18,14 +18,13 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -//package test.com.acme.dona.dep; +//package import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertNotNull; import static org.testng.Assert.assertNull; import static org.testng.Assert.assertTrue; import org.testng.annotations.BeforeClass; -import org.testng.annotations.Configuration; import org.testng.annotations.Test; //import org.testng.annotations.*; diff --git a/test/src/OntoTest.java b/test/src/OntoTest.java index f178dba240310ec4dbfe75785f232146b0c57948..e560693e2809b140d59460694ed26c8946962c0e 100644 --- a/test/src/OntoTest.java +++ b/test/src/OntoTest.java @@ -165,6 +165,7 @@ public class OntoTest { } @Test(groups = { "full", "onto", "raw" }, dependsOnMethods = {"loadedTest"}) + @SuppressWarnings("unchecked") // see below public void heavyLoadedTest() throws Exception { // load ontologies OntologyFactory.setDefaultFactory("fr.inrialpes.exmo.ontowrap.owlapi30.OWLAPI3OntologyFactory"); @@ -232,6 +233,7 @@ public class OntoTest { // Specific HeavyLoadedTests assertEquals( onto.getSubProperties( o, OntologyFactory.LOCAL, OntologyFactory.ASSERTED, OntologyFactory.NAMED ).size(), 0 ); assertEquals( onto.getSuperProperties( o, OntologyFactory.LOCAL, OntologyFactory.ASSERTED, OntologyFactory.NAMED ).size(), 0 ); + // a simple Set would suppress the warning but I like to understand Set<Object> scl = onto.getRange( o, OntologyFactory.ASSERTED ); assertEquals( scl.size(), 1 ); Object o2 = onto.getEntity( new URI( "http://ebiquity.umbc.edu/v2.1/ontology/person.owl#Person" ) ); diff --git a/test/src/OntologyNetworkTest.java b/test/src/OntologyNetworkTest.java index fda54b399b9a6baabdec1d148a56aee5b5ec8a71..143af60adf2e489ad9c3db7e452fdead8be377d8 100644 --- a/test/src/OntologyNetworkTest.java +++ b/test/src/OntologyNetworkTest.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2008-2011 + * Copyright (C) INRIA, 2008-2011, 2013 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -23,7 +23,6 @@ import static org.testng.Assert.assertNotNull; import static org.testng.Assert.assertNull; import static org.testng.Assert.assertTrue; import org.testng.annotations.BeforeClass; -import org.testng.annotations.Configuration; import org.testng.annotations.Test; //import org.testng.annotations.*;