@Test public void testResolvePatientRegistryDuplicates() throws Throwable { String eIdMock = "eIdMock"; String eIdDomainMock = "eIdDomainMock"; sut.setMarshaller(marshallerMock); sut.setXdsbRegistryWebServiceClient(xdsbRegistryWebServiceClientMock); PRPAIN201304UV02 requestMock = mock(PRPAIN201304UV02.class); String hl7v3XmlMock = "hl7v3XmlMock"; when( marshallerMock.unmarshalFromXml(PRPAIN201304UV02.class, hl7v3XmlMock)).thenReturn(requestMock); when( xdsbRegistryWebServiceClientMock .resolvePatientRegistryDuplicates(requestMock)) .thenReturn(hl7v3XmlMock); doNothing().when(sut).setEidValues(requestMock, eIdMock, eIdDomainMock); String actRetResponse = sut.resolvePatientRegistryDuplicates( hl7v3XmlMock, eIdMock, eIdDomainMock); assertEquals(hl7v3XmlMock, actRetResponse); }
@Override public String resolvePatientRegistryDuplicates(String hl7v3Xml, String eId, String eIdDomain) { return getMessage(PRPAIN201304UV02.class, hl7v3Xml, eId, eIdDomain); }
XdsbRegistryGetterImpl implements XdsbRegistryGetter { @Override public String resolvePatientRegistryDuplicates(String hl7v3Xml, String eId, String eIdDomain) { return getMessage(PRPAIN201304UV02.class, hl7v3Xml, eId, eIdDomain); } }
XdsbRegistryGetterImpl implements XdsbRegistryGetter { @Override public String resolvePatientRegistryDuplicates(String hl7v3Xml, String eId, String eIdDomain) { return getMessage(PRPAIN201304UV02.class, hl7v3Xml, eId, eIdDomain); } @Autowired  XdsbRegistryGetterImpl(
			@Value("${xdsbRegistryEndpointAddress}") String endpointAddress); }
XdsbRegistryGetterImpl implements XdsbRegistryGetter { @Override public String resolvePatientRegistryDuplicates(String hl7v3Xml, String eId, String eIdDomain) { return getMessage(PRPAIN201304UV02.class, hl7v3Xml, eId, eIdDomain); } @Autowired  XdsbRegistryGetterImpl(
			@Value("${xdsbRegistryEndpointAddress}") String endpointAddress); @Override String addPatientRegistryRecord(String hl7v3Xml, String eId,
			String eIdDomain); @Override String resolvePatientRegistryDuplicates(String hl7v3Xml, String eId,
			String eIdDomain); @Override String revisePatientRegistryRecord(String hl7v3Xml, String eId,
			String eIdDomain); @SuppressWarnings("unchecked") @Override String pidFeed(PixOperation operation, String hl7v3Xml, String eId,
			String eIdDomain); void setMarshaller(SimpleMarshaller marshaller); void setXdsbRegistryWebServiceClient(
			XdsbRegistryWebServiceClient xdsbRegistryWebServiceClient); }
XdsbRegistryGetterImpl implements XdsbRegistryGetter { @Override public String resolvePatientRegistryDuplicates(String hl7v3Xml, String eId, String eIdDomain) { return getMessage(PRPAIN201304UV02.class, hl7v3Xml, eId, eIdDomain); } @Autowired  XdsbRegistryGetterImpl(
			@Value("${xdsbRegistryEndpointAddress}") String endpointAddress); @Override String addPatientRegistryRecord(String hl7v3Xml, String eId,
			String eIdDomain); @Override String resolvePatientRegistryDuplicates(String hl7v3Xml, String eId,
			String eIdDomain); @Override String revisePatientRegistryRecord(String hl7v3Xml, String eId,
			String eIdDomain); @SuppressWarnings("unchecked") @Override String pidFeed(PixOperation operation, String hl7v3Xml, String eId,
			String eIdDomain); void setMarshaller(SimpleMarshaller marshaller); void setXdsbRegistryWebServiceClient(
			XdsbRegistryWebServiceClient xdsbRegistryWebServiceClient);  }