Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin-ebi committed Mar 15, 2024
1 parent aa6e4af commit daa9ede
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import uk.ac.ebi.eva.submission.service.LoginMethod;
import uk.ac.ebi.eva.submission.service.LsriTokenService;
import uk.ac.ebi.eva.submission.service.WebinTokenService;
import uk.ac.ebi.eva.submission.util.MailSender;

import java.time.LocalDateTime;
import java.util.ArrayList;
Expand Down Expand Up @@ -76,6 +77,9 @@ public class SubmissionWSIntegrationTest {
@MockBean
private GlobusDirectoryProvisioner globusDirectoryProvisioner;

@MockBean
private MailSender mailSender;

@Container
static PostgreSQLContainer<?> postgreSQLContainer = new PostgreSQLContainer<>("postgres:9.6")
.withInitScript("init.sql");
Expand Down Expand Up @@ -230,6 +234,7 @@ public void testMarkSubmissionUploaded() throws Exception {
String userToken = "webinUserToken";
SubmissionAccount submissionAccount = getWebinUserAccount();
when(webinTokenService.getWebinUserAccountFromToken(anyString())).thenReturn(submissionAccount);
doNothing().when(mailSender).sendEmail(anyString(), anyString(), anyString());

String submissionId = createNewSubmissionEntry(submissionAccount);

Expand Down

0 comments on commit daa9ede

Please sign in to comment.