Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Mendez committed Mar 29, 2016
1 parent 89c805b commit 81fe38b
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class ExampleLoaderTest {
public void testGetExampleConfigurations() {
ExampleLoader loader = new ExampleLoader();
List<ExampleConfiguration> list = loader.getExampleConfigurations();
Assert.assertEquals(2, list.size());
Assert.assertEquals(3, list.size());

{
ExampleConfiguration conf0 = list.get(0);
Expand All @@ -37,6 +37,15 @@ public void testGetExampleConfigurations() {
conf1.getQuery());
}

{
ExampleConfiguration conf2 = list.get(2);
Assert.assertEquals("example-2", conf2.getOntologyName());
Assert.assertTrue(conf2.getOntologyFileName().endsWith("/examples/example-2.owl"));
Assert.assertEquals(
"query(sub('http://lat.inf.tu-dresden.de/systems/born/born-example#a', 'http://lat.inf.tu-dresden.de/systems/born/born-example#e')).\n\n",
conf2.getQuery());
}

}

}

0 comments on commit 81fe38b

Please sign in to comment.