Remove dependency on public test server in unit test
This commit is contained in:
parent
54bb1508db
commit
6e0a9525a1
|
@ -195,13 +195,6 @@ public class XmlParserR4Test {
|
||||||
String encoded = ourCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(o);
|
String encoded = ourCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(o);
|
||||||
ourLog.info(encoded);
|
ourLog.info(encoded);
|
||||||
|
|
||||||
FhirContext
|
|
||||||
.forR4()
|
|
||||||
.newRestfulGenericClient("http://hapi.fhir.org/baseR4")
|
|
||||||
.create()
|
|
||||||
.resource(o)
|
|
||||||
.execute();
|
|
||||||
|
|
||||||
assertThat(encoded, containsString("<comment value=\"123
456\"/>"));
|
assertThat(encoded, containsString("<comment value=\"123
456\"/>"));
|
||||||
|
|
||||||
o = ourCtx.newXmlParser().parseResource(Observation.class, encoded);
|
o = ourCtx.newXmlParser().parseResource(Observation.class, encoded);
|
||||||
|
|
Loading…
Reference in New Issue