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/PagodaLUBM.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/PagodaLUBM.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/junit/PagodaLUBM.java | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/junit/PagodaLUBM.java b/test/uk/ac/ox/cs/pagoda/junit/PagodaLUBM.java deleted file mode 100644 index f8fef0e..0000000 --- a/test/uk/ac/ox/cs/pagoda/junit/PagodaLUBM.java +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.junit; | ||
| 2 | |||
| 3 | import static org.junit.Assert.*; | ||
| 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 PagodaLUBM { | ||
| 11 | |||
| 12 | public void test_all(int number) { | ||
| 13 | PagodaTester.main( | ||
| 14 | PagodaTester.onto_dir + "lubm/univ-bench.owl", | ||
| 15 | PagodaTester.onto_dir + "lubm/data/lubm" + number + ".ttl", | ||
| 16 | PagodaTester.onto_dir + "lubm/queries/test_all_pagoda.sparql" | ||
| 17 | ); | ||
| 18 | |||
| 19 | AllTests.copy("log4j.log", "output/jair/lubm" + number + ".out"); | ||
| 20 | } | ||
| 21 | |||
| 22 | @Test | ||
| 23 | public void test1() { test_all(1); } | ||
| 24 | |||
| 25 | public void test() { | ||
| 26 | int number = 100; | ||
| 27 | test_all(number); | ||
| 28 | } | ||
| 29 | |||
| 30 | public void check(int number) { | ||
| 31 | Statistics stat = new Statistics("output/log4j.log"); | ||
| 32 | String diff = stat.diff("results-backup/benchmark/lubm" + number + ".out"); | ||
| 33 | AllTests.copy("output/log4j.log", "results-backup/current/lubm" + number + ".out"); | ||
| 34 | if (!diff.isEmpty()) | ||
| 35 | fail(diff); | ||
| 36 | } | ||
| 37 | |||
| 38 | } | ||
