TrustMode implements ResponseMode { @Override public PRPAIN201306UV02 processResponse(ResponseParams params) { LOG.debug("Begin TrustMode.processResponse()..."); PRPAIN201306UV02 response = null; if (params != null) { response = params.response; AssertionType assertion = params.assertion; PRPAIN201305UV02 requestMsg = params.origRequest.getPRPAIN201305UV02(); List<PRPAIN201306UV02MFMIMT700711UV01Subject1> pRPAINSubjects = new ArrayList<>(); boolean hasResponseSubjectObj = false; if (response != null && response.getControlActProcess() != null && NullChecker.isNotNullish(response.getControlActProcess().getSubject())) { pRPAINSubjects = response.getControlActProcess().getSubject(); LOG.debug("processResponse - Subjects size: {}",pRPAINSubjects.size()); hasResponseSubjectObj = true; } else { LOG.debug("processResponse - response/subjects is null"); } II localPatId = getPatientId(requestMsg); if (requestHasLivingSubjectId(requestMsg) && localPatId != null) { for (PRPAIN201306UV02MFMIMT700711UV01Subject1 pRPAINSubject : pRPAINSubjects) { processTrustMode(hasResponseSubjectObj, response, pRPAINSubject, localPatId, assertion); } } else { LOG.debug("Local Patient Id was not provided, no correlation will be attempted"); } } else { LOG.warn("processResponse - params is null"); } LOG.debug("End TrustMode.processResponse()..."); return response; } TrustMode(); @Override PRPAIN201306UV02 processResponse(ResponseParams params); @Override PRPAIN201306UV02 processResponse(PRPAIN201306UV02 response, AssertionType assertion, II localPatId);  }
@Test public void testProcessResponse_ResponseParams() { System.out.println("processResponse"); ResponseParams params = null; TrustMode instance = new TrustMode(); PRPAIN201306UV02 expResult = null; PRPAIN201306UV02 result = instance.processResponse(params); assertEquals(expResult, result); }
@Test public void testProcessResponse_3args() { System.out.println("processResponse"); PRPAIN201306UV02 response = null; AssertionType assertion = null; II localPatId = null; TrustMode instance = new TrustMode(); PRPAIN201306UV02 expResult = null; PRPAIN201306UV02 result = instance.processResponse(response, assertion, localPatId); assertEquals(expResult, result); }