Skip to content

Commit

Permalink
More additional work on FhirTerser.getValues(...) enhancements. Ready…
Browse files Browse the repository at this point in the history
… for review.
  • Loading branch information
dmuylwyk committed Oct 22, 2018
1 parent 688e159 commit 4e414a1
Showing 1 changed file with 0 additions and 7 deletions.
Expand Up @@ -535,8 +535,6 @@ public void testGetValuesWithWantedClassAndTheCreate() {
public void testGetValuesWithTheCreate() {
Patient p = new Patient();

System.out.println(ourCtx.newJsonParser().setPrettyPrint(true).encodeResourceToString(p));

List<Object> values = ourCtx.newTerser().getValues(p, "Patient.active", true);
assertEquals(1, values.size());
assertTrue(values.get(0) instanceof PrimitiveType);
Expand All @@ -557,12 +555,7 @@ public void testGetValuesWithTheCreate() {
assertEquals("http://acme.org/modifierExtension", ((Extension) values.get(0)).getUrl());
assertNull(((Extension) values.get(0)).getValue());

System.out.println(ourCtx.newJsonParser().setPrettyPrint(true).encodeResourceToString(p));

values = ourCtx.newTerser().getValues(p, "Patient.extension('http://acme.org/parentExtension').extension('http://acme.org/childExtension')", true);

System.out.println(ourCtx.newJsonParser().setPrettyPrint(true).encodeResourceToString(p));

assertEquals(1, values.size());
assertTrue(values.get(0) instanceof IBaseExtension);
assertTrue(values.get(0) instanceof Extension);
Expand Down

0 comments on commit 4e414a1

Please sign in to comment.