One more test

This commit is contained in:
James Agnew 2016-03-18 19:45:00 +01:00
parent ab4deb406c
commit 5ad384c11a
1 changed files with 9 additions and 0 deletions

View File

@ -25,5 +25,14 @@ public class FhirContextDstu3Test {
assertEquals(AdministrativeGender.class, genderChild.getBoundEnumType());
}
@Test
public void testQueryNonBoundCode() {
RuntimeResourceDefinition patientType = ourCtx.getResourceDefinition(Patient.class);
String childName = "name";
BaseRuntimeChildDatatypeDefinition genderChild = (BaseRuntimeChildDatatypeDefinition) patientType.getChildByName(childName);
ourLog.trace(genderChild.getClass().getName());
assertEquals(null, genderChild.getBoundEnumType());
}
}