diff options
| author | RncLsn <rnc.lsn@gmail.com> | 2015-05-15 17:32:22 +0100 |
|---|---|---|
| committer | RncLsn <rnc.lsn@gmail.com> | 2015-05-15 17:32:22 +0100 |
| commit | 1b6a128137e5d7a6ff75566869232fc054afabef (patch) | |
| tree | 3def49c3c9c1e2ebebc49b82d9eb562b6d097cad /test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD.java | |
| parent | bd995407098d1b0c79c17a28b0b23a2c24a493c6 (diff) | |
| download | ACQuA-1b6a128137e5d7a6ff75566869232fc054afabef.tar.gz ACQuA-1b6a128137e5d7a6ff75566869232fc054afabef.zip | |
Testing and fixing. Executed successfully on UOBM{1,2,3,4,5,6,7,8}.
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD.java | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD.java b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD.java new file mode 100644 index 0000000..17d1e82 --- /dev/null +++ b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD.java | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.global_tests; | ||
| 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 | } | ||
