diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/resources/Correctness.xml | 20 | ||||
| -rw-r--r-- | test/resources/test.properties | 1 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaFLY.java | 6 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java | 2 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java | 4 |
5 files changed, 27 insertions, 6 deletions
diff --git a/test/resources/Correctness.xml b/test/resources/Correctness.xml new file mode 100644 index 0000000..3b00b7b --- /dev/null +++ b/test/resources/Correctness.xml | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > | ||
| 3 | |||
| 4 | <suite name="Correctness"> | ||
| 5 | |||
| 6 | <test name="correctness"> | ||
| 7 | <groups> | ||
| 8 | <run> | ||
| 9 | <include name="correctness"/> | ||
| 10 | <exclude name="heavy"/> | ||
| 11 | </run> | ||
| 12 | </groups> | ||
| 13 | <classes> | ||
| 14 | <class name="uk.ac.ox.cs.pagoda.global_tests.TestPagodaUOBM"/> | ||
| 15 | <!--<class name="uk.ac.ox.cs.pagoda.global_tests.TestPagodaLUBM"/>--> | ||
| 16 | <!--<class name="uk.ac.ox.cs.pagoda.global_tests.TestPagodaFLY"/>--> | ||
| 17 | </classes> | ||
| 18 | </test> | ||
| 19 | |||
| 20 | </suite> \ No newline at end of file | ||
diff --git a/test/resources/test.properties b/test/resources/test.properties index c4a25d0..08caeba 100644 --- a/test/resources/test.properties +++ b/test/resources/test.properties | |||
| @@ -1 +1,2 @@ | |||
| 1 | #ontoDir=/home/alessandro/Desktop | ||
| 1 | ontoDir=/home/alessandro/Big_files/Ontologies/ \ No newline at end of file | 2 | ontoDir=/home/alessandro/Big_files/Ontologies/ \ No newline at end of file |
diff --git a/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaFLY.java b/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaFLY.java index a0ccb1a..caaad35 100644 --- a/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaFLY.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaFLY.java | |||
| @@ -32,7 +32,7 @@ public class TestPagodaFLY { | |||
| 32 | CheckAnswers.assertSameAnswers(answers, givenAnswers); | 32 | CheckAnswers.assertSameAnswers(answers, givenAnswers); |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | @Test(groups = {"light"}) | 35 | @Test(groups = {"light", "correctness"}) |
| 36 | public void answersCorrectness_rolledUp() throws IOException { | 36 | public void answersCorrectness_rolledUp() throws IOException { |
| 37 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | 37 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); |
| 38 | Path answers = Paths.get(File.createTempFile("answers", ".json").getAbsolutePath()); | 38 | Path answers = Paths.get(File.createTempFile("answers", ".json").getAbsolutePath()); |
| @@ -43,7 +43,7 @@ public class TestPagodaFLY { | |||
| 43 | .ontology(Paths.get(ontoDir, "fly/fly_rolledUp.owl")) | 43 | .ontology(Paths.get(ontoDir, "fly/fly_rolledUp.owl")) |
| 44 | .query(Paths.get(ontoDir, "fly/queries/fly_rolledUp.sparql")) | 44 | .query(Paths.get(ontoDir, "fly/queries/fly_rolledUp.sparql")) |
| 45 | .answer(answers) | 45 | .answer(answers) |
| 46 | .answer(Paths.get("/home/alessandro/Desktop/answers.json")) | 46 | // .answer(Paths.get("/home/alessandro/Desktop/answers.json")) |
| 47 | .classify(false) | 47 | .classify(false) |
| 48 | .hermit(true) | 48 | .hermit(true) |
| 49 | .build(); | 49 | .build(); |
| @@ -68,7 +68,7 @@ public class TestPagodaFLY { | |||
| 68 | .run(); | 68 | .run(); |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | @Test(groups = {"light", "comparison"}) | 71 | @Test(groups = {"comparison"}) |
| 72 | public void compare_newQueries() throws IOException { | 72 | public void compare_newQueries() throws IOException { |
| 73 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | 73 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); |
| 74 | 74 | ||
diff --git a/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java b/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java index 089a7d2..fdbfc42 100644 --- a/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java | |||
| @@ -31,7 +31,7 @@ public class TestPagodaLUBM { | |||
| 31 | CheckAnswers.assertSameAnswers(answers, givenAnswers); | 31 | CheckAnswers.assertSameAnswers(answers, givenAnswers); |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | @Test(groups = {"light"}) | 34 | @Test(groups = {"light", "correctness"}) |
| 35 | public void answersCorrectness_1() throws IOException { | 35 | public void answersCorrectness_1() throws IOException { |
| 36 | answersCorrectness(1); | 36 | answersCorrectness(1); |
| 37 | } | 37 | } |
diff --git a/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java b/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java index 6daeacc..d0f0b9a 100644 --- a/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java | |||
| @@ -24,12 +24,12 @@ public class TestPagodaUOBM { | |||
| 24 | return integers; | 24 | return integers; |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | @Test(groups = {"light"}) | 27 | @Test(groups = {"light", "correctness"}) |
| 28 | public void answersCorrectness_1() throws IOException { | 28 | public void answersCorrectness_1() throws IOException { |
| 29 | answersCorrectness(1); | 29 | answersCorrectness(1); |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | @Test(groups = {"heavy"}, dataProvider = "UOBMNumbers") | 32 | @Test(groups = {"heavy", "correctness"}, dataProvider = "UOBMNumbers") |
| 33 | public void answersCorrectness(int number) throws IOException { | 33 | public void answersCorrectness(int number) throws IOException { |
| 34 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | 34 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); |
| 35 | Path answers = Paths.get(File.createTempFile("answers", ".json").getAbsolutePath()); | 35 | Path answers = Paths.get(File.createTempFile("answers", ".json").getAbsolutePath()); |
