Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 3d22d240 authored by Wylem Bars's avatar Wylem Bars

PATREG-79 | Merge develop in this branch

parent 42748545
Pipeline #132990 passed with stages
in 7 minutes and 33 seconds
......@@ -19,7 +19,7 @@ import net.ihe.gazelle.lib.gitbutils.adapter.MappingException;
import java.net.URL;
import java.util.List;
import static net.ihe.gazelle.app.patientregistryapi.adapter.ws.PatientRegistryGITBWebserviceConstants.PATIENT_INPUT_NAME;
import static net.ihe.gazelle.app.patientregistryapi.adapter.ws.PatientRegistryGITBWebserviceConstants.*;
/**
* PatientFeed Client to be used by any application that wants to feed a patient to a remote Patient Registry.
......@@ -45,7 +45,7 @@ public class PatientFeedClient implements PatientFeedService {
* @param processingServiceURL : URL of the remote Processing Service.
*/
public PatientFeedClient(URL processingServiceURL){
this.processingClient = new GITBClientProcessImpl(processingServiceURL, "PatientProcessingServiceService", "PatientProcessingServicePort");
this.processingClient = new GITBClientProcessImpl(processingServiceURL, PATIENT_PROCESSING_SERVICE, PATIENT_PROCESSING_SERVICE_PORT);
}
/**
......
......@@ -6,6 +6,8 @@ package net.ihe.gazelle.app.patientregistryapi.adapter.ws;
*/
public class PatientRegistryGITBWebserviceConstants {
public static final String PATIENT_PROCESSING_SERVICE = "PatientProcessingServiceService";
public static final String PATIENT_PROCESSING_SERVICE_PORT = "PatientProcessingServicePort";
public static final String PATIENT_FEED_OPERATION = "PatientFeed";
public static final String PATIENT_SEARCH_OPERATION = "PatientSearch";
public static final String UUID_OUTPUT_NAME = "UUID";
......
......@@ -21,6 +21,9 @@ import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import static net.ihe.gazelle.app.patientregistryapi.adapter.ws.PatientRegistryGITBWebserviceConstants.PATIENT_PROCESSING_SERVICE;
import static net.ihe.gazelle.app.patientregistryapi.adapter.ws.PatientRegistryGITBWebserviceConstants.PATIENT_PROCESSING_SERVICE_PORT;
/**
* PatientFeed Client to be used by any application that wants to feed a patient to a remote Patient Registry.
* Given an url, this client will be able to feed the remote registry using GITB Process Service while exposing the
......@@ -45,7 +48,7 @@ public class PatientSearchClient implements PatientSearchService {
* @param processingServiceURL : URL of the remote Processing Service.
*/
public PatientSearchClient(URL processingServiceURL){
this.processingClient = new GITBClientProcessImpl(processingServiceURL, "PatientProcessingServiceService", "PatientProcessingServicePort");
this.processingClient = new GITBClientProcessImpl(processingServiceURL, PATIENT_PROCESSING_SERVICE, PATIENT_PROCESSING_SERVICE_PORT);
}
/**
......
......@@ -29,7 +29,7 @@ public class PatientSearchProcessingServiceTest {
}
/**
* Test Processing a patient client, nominal case.
* Test Processing a patient search, nominal case.
*/
@Test
@Covers(requirements = {"PATREG-50","PATREG-56","PATREG-57","PATREG-59"})
......@@ -56,7 +56,7 @@ public class PatientSearchProcessingServiceTest {
}
/**
* Test Processing a patient client, service throwing an exception.
* Test Processing a patient search, service throwing an exception.
*/
@Test
@Covers(requirements = {"PATREG-55","PATREG-58","PATREG-59"})
......@@ -84,7 +84,7 @@ public class PatientSearchProcessingServiceTest {
}
/**
* Test Processing a patient client, service returning null.
* Test Processing a patient search, service returning null.
*/
@Test
@Covers(requirements = {"PATREG-51"})
......@@ -103,7 +103,7 @@ public class PatientSearchProcessingServiceTest {
}
/**
* Test Processing a patient client, error case using and AnyContent input that is not convertible to a Patient.
* Test Processing a patient search, error case using and AnyContent input that is not convertible to a Patient.
*/
@Test
@Covers(requirements = {"PATREG-52","PATREG-53"})
......@@ -120,7 +120,7 @@ public class PatientSearchProcessingServiceTest {
}
/**
* Test Processing a patient client, error case using no input in ProcessRequest
* Test Processing a patient search, error case using no input in ProcessRequest
*/
@Test
@Covers(requirements = {"PATREG-53","PATREG-54"})
......
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