use of com.b2international.snowowl.core.ResourceURI in project snow-owl by b2ihealthcare.
the class ResourceURITest method explicitBranch.
@Test
public void explicitBranch() throws Exception {
final ResourceURI uri = CodeSystem.uri("SNOMEDCT-EXT/a/b");
assertEquals("SNOMEDCT-EXT", uri.getResourceId());
assertEquals("a/b", uri.getPath());
}
use of com.b2international.snowowl.core.ResourceURI in project snow-owl by b2ihealthcare.
the class ResourceURITest method extensionVersion.
@Test
public void extensionVersion() throws Exception {
final ResourceURI uri = CodeSystem.uri("SNOMEDCT-EXT/2019-10-31");
assertEquals("SNOMEDCT-EXT", uri.getResourceId());
assertEquals("2019-10-31", uri.getPath());
}
use of com.b2international.snowowl.core.ResourceURI in project snow-owl by b2ihealthcare.
the class ResourceURITest method headImplicit.
@Test
public void headImplicit() throws Exception {
final ResourceURI uri = CodeSystem.uri("SNOMEDCT");
assertEquals("SNOMEDCT", uri.getResourceId());
assertEquals(ResourceURI.HEAD, uri.getPath());
}
use of com.b2international.snowowl.core.ResourceURI in project snow-owl by b2ihealthcare.
the class CodeSystemTest method codeSystemChildBranchToURI.
@Test
public void codeSystemChildBranchToURI() throws Exception {
ResourceURI uri = codeSystem.getResourceURI("MAIN/child");
assertThat(uri).isEqualTo(CodeSystem.uri("SNOMEDCT/child"));
}
use of com.b2international.snowowl.core.ResourceURI in project snow-owl by b2ihealthcare.
the class CodeSystemTest method codeSystemMainBranchToURI.
@Test
public void codeSystemMainBranchToURI() throws Exception {
ResourceURI uri = codeSystem.getResourceURI("MAIN");
assertThat(uri).isEqualTo(CodeSystem.uri("SNOMEDCT"));
}
Aggregations