forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add convenient MailTemplateInstance#sendAndAwait()
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ public void testMailTemplateRecord() { | |
// Intentionally use programmatic lookup to obtain the MockMailbox | ||
MockMailbox mockMailbox = Arc.container().instance(MockMailbox.class).get(); | ||
new confirmation("Ondrej").to("[email protected]").from("[email protected]").subject("test mailer") | ||
.send().await().indefinitely(); | ||
.sendAndAwait(); | ||
assertEquals(1, mockMailbox.getMailMessagesSentTo("[email protected]").size()); | ||
MailMessage message = mockMailbox.getMailMessagesSentTo("[email protected]").get(0); | ||
assertEquals("[email protected]", message.getFrom()); | ||
|
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