use of org.hl7.fhir.dstu3.model.Library in project cqf-ruler by DBCG.
the class IdsTest method testClassSupported.
@Test
public void testClassSupported() {
IIdType id = Ids.newId(org.hl7.fhir.dstu3.model.Library.class, "123");
assertTrue(id instanceof org.hl7.fhir.dstu3.model.IdType);
assertEquals("Library", id.getResourceType());
assertEquals("123", id.getIdPart());
}
use of org.hl7.fhir.dstu3.model.Library in project cqf-ruler by DBCG.
the class LibrariesTest method libraryNoVersionReturnsNull.
@Test
public void libraryNoVersionReturnsNull() {
Library library = new Library();
String version = Libraries.getVersion(library);
assertNull(version);
}
use of org.hl7.fhir.dstu3.model.Library in project cqf-ruler by DBCG.
the class LibrariesTest method libraryWithVersionReturnsVersion.
@Test
public void libraryWithVersionReturnsVersion() {
Library library = new Library().setVersion("1.0.0");
String version = Libraries.getVersion(library);
assertEquals("1.0.0", version);
}
use of org.hl7.fhir.dstu3.model.Library in project cqf-ruler by DBCG.
the class LibrariesTest method libraryNoContentReturnsNull.
@Test
public void libraryNoContentReturnsNull() {
Library library = new Library();
byte[] content = Libraries.getContent(library, "text/cql");
assertNull(content);
}
use of org.hl7.fhir.dstu3.model.Library in project cqf-ruler by DBCG.
the class LibrariesTest method libraryMismatchedContentReturnsNull.
@Test
public void libraryMismatchedContentReturnsNull() {
Library library = new Library();
library.addContent().setContentType("text/cql").setData("test-data".getBytes());
byte[] content = Libraries.getContent(library, "text/elm");
assertNull(content);
}
Aggregations