Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e294a0f2 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- added URI tests

parent f18e3b77
No related branches found
No related tags found
No related merge requests found
...@@ -99,6 +99,19 @@ public class OntoTest { ...@@ -99,6 +99,19 @@ public class OntoTest {
assertEquals( onto.getOntology(), "MyBeautifulOntology" ); assertEquals( onto.getOntology(), "MyBeautifulOntology" );
} }
@Test(groups = { "full", "onto", "raw" }, dependsOnMethods = {"basicTest"})
public void basicServiceTest() throws Exception {
BasicOntology<String> onto = new BasicOntology<String>();
assertNotNull( onto );
assertEquals( onto.getFragmentAsLabel( new URI("http://example.com/#123" ) ), "123" );
assertEquals( onto.getFragmentAsLabel( new URI("http://example.com#123" ) ), "123" );
assertEquals( onto.getFragmentAsLabel( new URI("http://example.com/aaaa#123" ) ), "123" );
assertEquals( onto.getFragmentAsLabel( new URI("http://example.com/aaaa/#123" ) ), "123" );
assertEquals( onto.getFragmentAsLabel( new URI("http://example.com/aaaa/123" ) ), "123" );
assertEquals( onto.getFragmentAsLabel( new URI("http://example.com/aaaa/123/" ) ), "123" );
assertEquals( onto.getFragmentAsLabel( new URI("http://example.com/aaaa/123/#" ) ), "" );
}
@Test(groups = { "full", "onto", "raw" }, dependsOnMethods = {"basicTest"}) @Test(groups = { "full", "onto", "raw" }, dependsOnMethods = {"basicTest"})
public void loadedTest() throws Exception { public void loadedTest() throws Exception {
// load ontologies // load ontologies
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment