diff options
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/test_units/PagodaNPD.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/test_units/PagodaNPD.java | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/PagodaNPD.java b/test/uk/ac/ox/cs/pagoda/test_units/PagodaNPD.java deleted file mode 100644 index 5f89162..0000000 --- a/test/uk/ac/ox/cs/pagoda/test_units/PagodaNPD.java +++ /dev/null | |||
| @@ -1,46 +0,0 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | ||
| 2 | |||
| 3 | import org.junit.Test; | ||
| 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | ||
| 5 | import uk.ac.ox.cs.pagoda.tester.Statistics; | ||
| 6 | import uk.ac.ox.cs.pagoda.util.TestUtil; | ||
| 7 | |||
| 8 | import java.io.IOException; | ||
| 9 | |||
| 10 | import static org.junit.Assert.fail; | ||
| 11 | |||
| 12 | public class PagodaNPD { | ||
| 13 | |||
| 14 | @Test | ||
| 15 | public void testNPDwithoutDataType() throws IOException { | ||
| 16 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | ||
| 17 | PagodaTester.main( | ||
| 18 | TestUtil.combinePaths(ontoDir, "npd/npd-all-minus-datatype.owl"), | ||
| 19 | TestUtil.combinePaths(ontoDir, "npd/data/npd-data-dump-minus-datatype-new.ttl"), | ||
| 20 | TestUtil.combinePaths(ontoDir, "npd/queries/atomic.sparql") | ||
| 21 | ); | ||
| 22 | |||
| 23 | Statistics stat = new Statistics("output/log4j.log"); | ||
| 24 | String diff = stat.diff("results-backup/benchmark/npd_minus.out"); | ||
| 25 | TestUtil.copyFile("output/log4j.log", "results-backup/current/npd_minus.out"); | ||
| 26 | if (!diff.isEmpty()) | ||
| 27 | fail(diff); | ||
| 28 | } | ||
| 29 | |||
| 30 | @Test | ||
| 31 | public void testNPD() throws IOException { | ||
| 32 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | ||
| 33 | PagodaTester.main( | ||
| 34 | TestUtil.combinePaths(ontoDir, "npd/npd-all.owl"), | ||
| 35 | TestUtil.combinePaths(ontoDir, "npd/data/npd-data-dump-processed.ttl"), | ||
| 36 | TestUtil.combinePaths(ontoDir, "npd/queries/atomic.sparql") | ||
| 37 | ); | ||
| 38 | |||
| 39 | Statistics stat = new Statistics("output/log4j.log"); | ||
| 40 | String diff = stat.diff("results-backup/benchmark/npd.out"); | ||
| 41 | TestUtil.copyFile("output/log4j.log", "results-backup/current/npd.out"); | ||
| 42 | if (!diff.isEmpty()) | ||
| 43 | fail(diff); | ||
| 44 | } | ||
| 45 | |||
| 46 | } | ||
