Last active
October 1, 2019 16:35
-
-
Save MemoAlfa/f9278f192b4b513cfa1363b3e5f58482 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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