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/junit/PagodaNPD_bench.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/junit/PagodaNPD_bench.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/junit/PagodaNPD_bench.java | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/junit/PagodaNPD_bench.java b/test/uk/ac/ox/cs/pagoda/junit/PagodaNPD_bench.java deleted file mode 100644 index df1a57d..0000000 --- a/test/uk/ac/ox/cs/pagoda/junit/PagodaNPD_bench.java +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.junit; | ||
| 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 | |||
| 10 | public class PagodaNPD_bench { | ||
| 11 | |||
| 12 | @Test | ||
| 13 | public void test() { | ||
| 14 | PagodaTester.main( | ||
| 15 | PagodaTester.onto_dir + "npd-benchmark/npd-v2-ql_a.owl", | ||
| 16 | PagodaTester.onto_dir + "npd-benchmark/npd-v2-ql_a.ttl", | ||
| 17 | PagodaTester.onto_dir + "npd-benchmark/queries/all.sparql" | ||
| 18 | ); | ||
| 19 | |||
| 20 | Statistics stat = new Statistics("output/log4j.log"); | ||
| 21 | String diff = stat.diff("results-backup/benchmark/npd-bench.out"); | ||
| 22 | AllTests.copy("output/log4j.log", "results-backup/current/npd-bench.out"); | ||
| 23 | if (!diff.isEmpty()) | ||
| 24 | fail(diff); | ||
| 25 | } | ||
| 26 | |||
| 27 | } | ||
