From c7dbc7c61c7094ea4ec49bd630023f23b92fd9d1 Mon Sep 17 00:00:00 2001 From: RncLsn Date: Mon, 18 May 2015 18:27:32 +0100 Subject: Configured Maven and improved executable class and tests. --- .../uk/ac/ox/cs/pagoda/global_tests/PagodaNPD.java | 46 ---------------------- 1 file changed, 46 deletions(-) delete mode 100644 test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD.java (limited to 'test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD.java') diff --git a/test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD.java b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD.java deleted file mode 100644 index 17d1e82..0000000 --- a/test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD.java +++ /dev/null @@ -1,46 +0,0 @@ -package uk.ac.ox.cs.pagoda.global_tests; - -import org.junit.Test; -import uk.ac.ox.cs.pagoda.tester.PagodaTester; -import uk.ac.ox.cs.pagoda.tester.Statistics; -import uk.ac.ox.cs.pagoda.util.TestUtil; - -import java.io.IOException; - -import static org.junit.Assert.fail; - -public class PagodaNPD { - - @Test - public void testNPDwithoutDataType() throws IOException { - String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); - PagodaTester.main( - TestUtil.combinePaths(ontoDir, "npd/npd-all-minus-datatype.owl"), - TestUtil.combinePaths(ontoDir, "npd/data/npd-data-dump-minus-datatype-new.ttl"), - TestUtil.combinePaths(ontoDir, "npd/queries/atomic.sparql") - ); - - Statistics stat = new Statistics("output/log4j.log"); - String diff = stat.diff("results-backup/benchmark/npd_minus.out"); - TestUtil.copyFile("output/log4j.log", "results-backup/current/npd_minus.out"); - if (!diff.isEmpty()) - fail(diff); - } - - @Test - public void testNPD() throws IOException { - String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); - PagodaTester.main( - TestUtil.combinePaths(ontoDir, "npd/npd-all.owl"), - TestUtil.combinePaths(ontoDir, "npd/data/npd-data-dump-processed.ttl"), - TestUtil.combinePaths(ontoDir, "npd/queries/atomic.sparql") - ); - - Statistics stat = new Statistics("output/log4j.log"); - String diff = stat.diff("results-backup/benchmark/npd.out"); - TestUtil.copyFile("output/log4j.log", "results-backup/current/npd.out"); - if (!diff.isEmpty()) - fail(diff); - } - -} -- cgit v1.2.3