Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MemoAlfa/f9278f192b4b513cfa1363b3e5f58482 to your computer and use it in GitHub Desktop.
Save MemoAlfa/f9278f192b4b513cfa1363b3e5f58482 to your computer and use it in GitHub Desktop.
private void givenUserSuccessFullyUploadedRequiredDocuments(List<UUID> documentIds) throws IOException {
final UploadDocumentRequestDto uploadDocumentRequestDto = new UploadDocumentRequestDto(
Base64.getEncoder().encodeToString(ByteStreams.toByteArray(testDocumentPdf.getInputStream())));
documentIds.forEach(documentId -> {
httpRequestHelper.whenPutUploadRequest(tenantUser(testUserCreatedMessage.getUserUuid()), documentId, uploadDocumentRequestDto)
.then()
.statusCode(HttpStatus.ACCEPTED.value());
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment