Skip to content

Commit

Permalink
Update src/test/java/org/broadinstitute/consent/http/resources/DraftR…
Browse files Browse the repository at this point in the history
…esourceTest.java

Co-authored-by: Phil Shapiro <[email protected]>
  • Loading branch information
otchet-broad and pshapiro4broad authored Feb 3, 2025
1 parent e126c2f commit b68727a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ void testUploadAttachmentSuccess() throws SQLException {
when(draftService.getAuthorizedDraft(any(), any())).thenReturn(new DraftStudyDataset("{}", user));
DraftInterface draftWithAttachment = new DraftStudyDataset("{}", user);
draftWithAttachment.addStoredFile(mock(FileStorageObject.class));
when(draftService.addAttachments(any(), any(), any())).thenReturn(draftWithAttachment.getStoredFiles().stream().toList());
when(draftService.addAttachments(any(), any(), any())).thenReturn(List.copyOf(draftWithAttachment.getStoredFiles()));
initResource();
Response response = resource.addAttachments(authUser, UUID.randomUUID().toString(), mock(
FormDataMultiPart.class));
Expand Down

0 comments on commit b68727a

Please sign in to comment.