diff options
| author | RncLsn <rnc.lsn@gmail.com> | 2015-05-06 18:11:08 +0100 |
|---|---|---|
| committer | Ronca <alessandro.a.ronca@gmail.com> | 2015-05-06 18:20:58 +0100 |
| commit | f2909a748a300f94cf6067fc84416e408d3e6de8 (patch) | |
| tree | 02962a710fe27ea1c7a2704a356b7f663a42cb52 /test/uk/ac/ox/cs/pagoda/test_units/PagodaNPD.java | |
| parent | 58e6d87cb604702e7b307bad73c4fd42a694c3ec (diff) | |
| download | ACQuA-f2909a748a300f94cf6067fc84416e408d3e6de8.tar.gz ACQuA-f2909a748a300f94cf6067fc84416e408d3e6de8.zip | |
Switch from JUnit to TestNG.
Plus minor fixes.
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 | 45 |
1 files changed, 45 insertions, 0 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 new file mode 100644 index 0000000..8fbe793 --- /dev/null +++ b/test/uk/ac/ox/cs/pagoda/test_units/PagodaNPD.java | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | ||
| 2 | |||
| 3 | import static org.junit.Assert.fail; | ||
| 4 | |||
| 5 | import org.junit.Test; | ||
| 6 | |||
| 7 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | ||
| 8 | import uk.ac.ox.cs.pagoda.tester.Statistics; | ||
| 9 | import uk.ac.ox.cs.pagoda.util.Utility; | ||
| 10 | |||
| 11 | import java.io.IOException; | ||
| 12 | |||
| 13 | public class PagodaNPD { | ||
| 14 | |||
| 15 | @Test | ||
| 16 | public void testNPDwithoutDataType() throws IOException { | ||
| 17 | PagodaTester.main( | ||
| 18 | PagodaTester.onto_dir + "npd/npd-all-minus-datatype.owl", | ||
| 19 | PagodaTester.onto_dir + "npd/data/npd-data-dump-minus-datatype-new.ttl", | ||
| 20 | PagodaTester.onto_dir + "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 | Utility.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 | PagodaTester.main( | ||
| 33 | PagodaTester.onto_dir + "npd/npd-all.owl", | ||
| 34 | PagodaTester.onto_dir + "npd/data/npd-data-dump-processed.ttl", | ||
| 35 | PagodaTester.onto_dir + "npd/queries/atomic.sparql" | ||
| 36 | ); | ||
| 37 | |||
| 38 | Statistics stat = new Statistics("output/log4j.log"); | ||
| 39 | String diff = stat.diff("results-backup/benchmark/npd.out"); | ||
| 40 | Utility.copyFile("output/log4j.log", "results-backup/current/npd.out"); | ||
| 41 | if (!diff.isEmpty()) | ||
| 42 | fail(diff); | ||
| 43 | } | ||
| 44 | |||
| 45 | } | ||
