Skip to content

Commit

Permalink
JAMES-2285 Provide a ManageableMailQueue contract
Browse files Browse the repository at this point in the history
  • Loading branch information
chibenwa committed Jan 16, 2018
1 parent 9c13b92 commit 47f1251
Show file tree
Hide file tree
Showing 3 changed files with 496 additions and 3 deletions.
Expand Up @@ -34,11 +34,15 @@
public interface Mails {

static FakeMail.Builder defaultMail() throws MessagingException {
return defaultMailNoRecipient()
.recipients(RECIPIENT1, RECIPIENT2);
}

static FakeMail.Builder defaultMailNoRecipient() throws MessagingException {
return FakeMail.builder()
.name("name")
.mimeMessage(createMimeMessage())
.sender(SENDER)
.recipients(RECIPIENT1, RECIPIENT2)
.lastUpdated(new Date());
}

Expand Down

0 comments on commit 47f1251

Please sign in to comment.