Commit 073ed664 authored by Matthieu Bonnouvrier's avatar Matthieu Bonnouvrier
Browse files

Add ClientTest

parent 7e771f78
Pipeline #265280 failed with stages
in 11 minutes and 33 seconds
......@@ -17,19 +17,20 @@ public class TestClientWithUrl {
@Test
void test() throws MalformedURLException {
URL patientRegistryUrl = new URL("http://localhost:8580/patient-registry/CrossReferenceService/xref-processing-service?wsdl");
URL patientRegistryUrl = new URL("http://qualification.ihe-europe.net/patient-registry/CrossReferenceService/xref-processing-service?wsdl ");
XRefSearchClient xRefSearchClient = new XRefSearchClient(patientRegistryUrl);
EntityIdentifier entityIdentifier = new EntityIdentifier();
entityIdentifier.setSystemIdentifier("2.16.756.5.30.1.127.3.10.81");
entityIdentifier.setType("ISO");
entityIdentifier.setValue("1610749172368102389526");
entityIdentifier.setSystemIdentifier("1.3.6.1.4.1.21367.13.20.3000");
entityIdentifier.setType(null);
entityIdentifier.setValue("IHEBLUE-998");
List<String> targetDomain = new ArrayList<>();
targetDomain.add("test");
targetDomain.add("1.3.6.1.4.1.21367.13.20.2000");
try {
PatientAliases patientAliases = xRefSearchClient.search(entityIdentifier,targetDomain);
//Assertions.assertEquals(patientAliases.getUuid(),10);
System.out.println(patientAliases);
} catch (SearchCrossReferenceException e) {
e.printStackTrace();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment