HL7PRPA201306Transforms { protected boolean areControlActProcessFieldsNull(PRPAIN201305UV02 oRequest) { if (oRequest.getControlActProcess() == null) { LOG.error("The controlActProcess object from the incomming request message is null."); return true; } else if (oRequest.getControlActProcess().getQueryByParameter() == null) { LOG.error("The JAXB queryByParameter object in the request's controlActProcess object is null."); return true; } else if (oRequest.getControlActProcess().getQueryByParameter().getValue() == null) { LOG.error("The queryByParameter object in the request's controlActProcess object is null."); return true; } else if (oRequest.getControlActProcess().getQueryByParameter().getValue().getQueryId() == null) { LOG.error("The queryId object in the request's controlActProcess object is null."); return true; } return false; }  static PRPAIN201306UV02 createPRPA201306(PRPAMT201301UV02Patient patient, String senderOID,
        String receiverAAID, String receiverOID, String localDeviceId, PRPAIN201305UV02 query); PRPAIN201306UV02 createPRPA201306ForPatientNotFound(PRPAIN201305UV02 oRequest); PRPAIN201306UV02 createPRPA201306ForErrors(PRPAIN201305UV02 oRequest, String sErrorCode); PRPAIN201306UV02 createPRPA201306ForErrors(PRPAIN201305UV02 oRequest, String sErrorCode, String sErrorText); static PRPAIN201306UV02MFMIMT700711UV01ControlActProcess createQUQIMT021001UV01ControlActProcess(
        PRPAMT201301UV02Patient patient, String localDeviceId, PRPAIN201305UV02 query, String aaId, String orgId); static PRPAIN201306UV02MFMIMT700711UV01ControlActProcess createQUQIMT021001UV01ControlActProcessWithNoRegistrationEvent(
        PRPAIN201305UV02 query); static MFMIMT700711UV01QueryAck createQueryAck(PRPAIN201305UV02 query); static PRPAIN201306UV02MFMIMT700711UV01Subject2 createSubject2(PRPAMT201301UV02Patient patient,
        PRPAIN201305UV02 query, String patId, String orgId);  }
@Test public void areControlActProcessFieldsNullWhenCAPNull() { boolean result; PRPAIN201305UV02 oRequest = new PRPAIN201305UV02(); HL7PRPA201306Transforms transforms = new HL7PRPA201306Transforms(); result = transforms.areControlActProcessFieldsNull(oRequest); assertTrue(result); }
@Test public void areControlActProcessFieldsNullWhenQueryByParameterNull() { boolean result; PRPAIN201305UV02 oRequest = new PRPAIN201305UV02(); PRPAIN201305UV02QUQIMT021001UV01ControlActProcess controlActProcess = new PRPAIN201305UV02QUQIMT021001UV01ControlActProcess(); oRequest.setControlActProcess(controlActProcess); HL7PRPA201306Transforms transforms = new HL7PRPA201306Transforms(); result = transforms.areControlActProcessFieldsNull(oRequest); assertTrue(result); }
@Test public void areControlActProcessFieldsNullWhenQueryByParameterValueNull() { boolean result; PRPAIN201305UV02 oRequest = new PRPAIN201305UV02(); PRPAIN201305UV02QUQIMT021001UV01ControlActProcess controlActProcess = new PRPAIN201305UV02QUQIMT021001UV01ControlActProcess(); PRPAMT201306UV02QueryByParameter parameter = new PRPAMT201306UV02QueryByParameter(); parameter.setQueryId(createII()); oRequest.setControlActProcess(controlActProcess); HL7PRPA201306Transforms transforms = new HL7PRPA201306Transforms(); result = transforms.areControlActProcessFieldsNull(oRequest); assertTrue(result); }
@Test public void areControlActProcessFieldsNullWhenQueryIdNull() { boolean result; PRPAIN201305UV02 oRequest = new PRPAIN201305UV02(); PRPAIN201305UV02QUQIMT021001UV01ControlActProcess controlActProcess = new PRPAIN201305UV02QUQIMT021001UV01ControlActProcess(); PRPAMT201306UV02QueryByParameter parameter = new PRPAMT201306UV02QueryByParameter(); parameter.setParameterList(createPRPAMT201306UV02ParameterList()); javax.xml.namespace.QName xmlqname = new javax.xml.namespace.QName("urn:hl7-org:v3", "parameter"); JAXBElement<PRPAMT201306UV02QueryByParameter> queryByParameter = new JAXBElement<>( xmlqname, PRPAMT201306UV02QueryByParameter.class, parameter); controlActProcess.setQueryByParameter(queryByParameter); oRequest.setControlActProcess(controlActProcess); HL7PRPA201306Transforms transforms = new HL7PRPA201306Transforms(); result = transforms.areControlActProcessFieldsNull(oRequest); assertTrue(result); }