@Test public void testErrorRetrieveDocumentSetResponseNoConsentsFound() throws SAXException, Throwable{ String expectedResponse = fileReader.readFile("errorRetrieveDocumentSetResponseNoConsentsFound.xml"); String patientUniqueIdMock = "patientUniqueIdMock"; RetrieveDocumentSetResponse actualResponse =sut.errorRetrieveDocumentSetResponseNoConsentsFound(patientUniqueIdMock); assertResponse(expectedResponse, actualResponse); }
public RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseNoConsentsFound( String patientUniqueId) { StringBuilder builder = new StringBuilder(); builder.append("No consents found for patient "); builder.append(patientUniqueId); builder.append("."); String codeContext = builder.toString(); String errorCode = "XDSRepositoryError"; boolean isPartial = false; return createRetrieveDocumentSetResponseError(codeContext, errorCode, isPartial); }
XdsbErrorFactory { public RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseNoConsentsFound( String patientUniqueId) { StringBuilder builder = new StringBuilder(); builder.append("No consents found for patient "); builder.append(patientUniqueId); builder.append("."); String codeContext = builder.toString(); String errorCode = "XDSRepositoryError"; boolean isPartial = false; return createRetrieveDocumentSetResponseError(codeContext, errorCode, isPartial); } }
XdsbErrorFactory { public RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseNoConsentsFound( String patientUniqueId) { StringBuilder builder = new StringBuilder(); builder.append("No consents found for patient "); builder.append(patientUniqueId); builder.append("."); String codeContext = builder.toString(); String errorCode = "XDSRepositoryError"; boolean isPartial = false; return createRetrieveDocumentSetResponseError(codeContext, errorCode, isPartial); } XdsbErrorFactory();  XdsbErrorFactory(RegistryErrorListSetter registryErrorListSetter); }
XdsbErrorFactory { public RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseNoConsentsFound( String patientUniqueId) { StringBuilder builder = new StringBuilder(); builder.append("No consents found for patient "); builder.append(patientUniqueId); builder.append("."); String codeContext = builder.toString(); String errorCode = "XDSRepositoryError"; boolean isPartial = false; return createRetrieveDocumentSetResponseError(codeContext, errorCode, isPartial); } XdsbErrorFactory();  XdsbErrorFactory(RegistryErrorListSetter registryErrorListSetter); RetrieveDocumentSetResponse setRetrieveDocumentSetResponseRegistryErrorListFilteredByPatientAndAuthor(
			RetrieveDocumentSetResponse response, int numRemoved,
			String patientId, String authorNPI); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseMultipleRepositoryId(); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseConstructByErrorMessage(
			String errorMessage); RetrieveDocumentSetResponse errorRetrieveDocumentSetInternalServerError(); RetrieveDocumentSetResponse noClinicalDocumentFound(
			String patientId, String authorNPI); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseSchemaValidation(
			RetrieveDocumentSetResponse response, Map<String, String> errorMap); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseNotExistsOrAccessible(
			RetrieveDocumentSetRequest input); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseRepositoryNotAvailable(); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseInternalPEPError(); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseAccessDeniedByPDP(); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseNoConsentsFound(
			String patientUniqueId); AdhocQueryResponse errorAdhocQueryResponseConstructByErrorMessage(
			String errorMessage); AdhocQueryResponse errorAdhocQueryResponseRegistryNotAvailable(); AdhocQueryResponse errorAdhocQueryResponseAccessDeniedByPDP(); AdhocQueryResponse errorAdhocQueryResponseInternalServerError(); AdhocQueryResponse errorAdhocQueryResponseNoDocumentsFound(
			String patientUniqueId, String intermediarySubjectNPI); AdhocQueryResponse errorAdhocQueryResponseMissingParameters(); }
XdsbErrorFactory { public RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseNoConsentsFound( String patientUniqueId) { StringBuilder builder = new StringBuilder(); builder.append("No consents found for patient "); builder.append(patientUniqueId); builder.append("."); String codeContext = builder.toString(); String errorCode = "XDSRepositoryError"; boolean isPartial = false; return createRetrieveDocumentSetResponseError(codeContext, errorCode, isPartial); } XdsbErrorFactory();  XdsbErrorFactory(RegistryErrorListSetter registryErrorListSetter); RetrieveDocumentSetResponse setRetrieveDocumentSetResponseRegistryErrorListFilteredByPatientAndAuthor(
			RetrieveDocumentSetResponse response, int numRemoved,
			String patientId, String authorNPI); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseMultipleRepositoryId(); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseConstructByErrorMessage(
			String errorMessage); RetrieveDocumentSetResponse errorRetrieveDocumentSetInternalServerError(); RetrieveDocumentSetResponse noClinicalDocumentFound(
			String patientId, String authorNPI); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseSchemaValidation(
			RetrieveDocumentSetResponse response, Map<String, String> errorMap); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseNotExistsOrAccessible(
			RetrieveDocumentSetRequest input); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseRepositoryNotAvailable(); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseInternalPEPError(); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseAccessDeniedByPDP(); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseNoConsentsFound(
			String patientUniqueId); AdhocQueryResponse errorAdhocQueryResponseConstructByErrorMessage(
			String errorMessage); AdhocQueryResponse errorAdhocQueryResponseRegistryNotAvailable(); AdhocQueryResponse errorAdhocQueryResponseAccessDeniedByPDP(); AdhocQueryResponse errorAdhocQueryResponseInternalServerError(); AdhocQueryResponse errorAdhocQueryResponseNoDocumentsFound(
			String patientUniqueId, String intermediarySubjectNPI); AdhocQueryResponse errorAdhocQueryResponseMissingParameters();  }