diff options
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/junit/PagodaDBPedia.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/junit/PagodaDBPedia.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/junit/PagodaDBPedia.java b/test/uk/ac/ox/cs/pagoda/junit/PagodaDBPedia.java new file mode 100644 index 0000000..37ffb44 --- /dev/null +++ b/test/uk/ac/ox/cs/pagoda/junit/PagodaDBPedia.java | |||
| @@ -0,0 +1,27 @@ | |||
| 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 PagodaDBPedia { | ||
| 11 | |||
| 12 | @Test | ||
| 13 | public void test() { | ||
| 14 | PagodaTester.main( | ||
| 15 | PagodaTester.onto_dir + "dbpedia/integratedOntology-all-in-one-minus-datatype.owl", | ||
| 16 | PagodaTester.onto_dir + "dbpedia/data/dbpedia-minus-datatype-new.ttl", | ||
| 17 | PagodaTester.onto_dir + "dbpedia/atomic.sparql" | ||
| 18 | ); | ||
| 19 | |||
| 20 | Statistics stat = new Statistics("output/log4j.log"); | ||
| 21 | String diff = stat.diff("results-backup/benchmark/dbpedia.out"); | ||
| 22 | AllTests.copy("output/log4j.log", "results-backup/current/dbpedia.out"); | ||
| 23 | if (!diff.isEmpty()) | ||
| 24 | fail(diff); | ||
| 25 | } | ||
| 26 | |||
| 27 | } | ||
