Fix dependency on DNS in test
This commit is contained in:
parent
f6601cc347
commit
b4fa165938
|
@ -5,6 +5,11 @@
|
||||||
<projects>
|
<projects>
|
||||||
</projects>
|
</projects>
|
||||||
<buildSpec>
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.wst.common.project.facet.core.builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
<buildCommand>
|
<buildCommand>
|
||||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||||
<arguments>
|
<arguments>
|
||||||
|
@ -13,5 +18,6 @@
|
||||||
</buildSpec>
|
</buildSpec>
|
||||||
<natures>
|
<natures>
|
||||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
|
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
|
||||||
</natures>
|
</natures>
|
||||||
</projectDescription>
|
</projectDescription>
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class ClientTest {
|
||||||
Bundle bundle = new Bundle();
|
Bundle bundle = new Bundle();
|
||||||
bundle.addEntry().setResource(new Patient().setId("Patient/unit_test_patient"));
|
bundle.addEntry().setResource(new Patient().setId("Patient/unit_test_patient"));
|
||||||
|
|
||||||
IGenericClient client = ctx.newRestfulGenericClient("http://this_is_an_invalid_host_name_yes_it_is/fhir"); // won't connect
|
IGenericClient client = ctx.newRestfulGenericClient("http://127.0.0.1:1/fhir"); // won't connect
|
||||||
ITransactionTyped<Bundle> transaction = client.transaction().withBundle(bundle);
|
ITransactionTyped<Bundle> transaction = client.transaction().withBundle(bundle);
|
||||||
try {
|
try {
|
||||||
Bundle result = transaction.encodedJson().execute();
|
Bundle result = transaction.encodedJson().execute();
|
||||||
|
|
Loading…
Reference in New Issue