@ApplicationScoped public class MockMailboxImpl extends Object implements MockMailbox
| Constructor and Description |
|---|
MockMailboxImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes every sent message.
|
List<Mail> |
getMessagesSentTo(String address)
Returns a list of mails sent to the given address, whether it was via To, Cc or Bcc.
|
int |
getTotalMessagesSent()
Gets the total number of messages sent.
|
(package private) CompletionStage<Void> |
send(Mail email) |
CompletionStage<Void> send(Mail email)
public List<Mail> getMessagesSentTo(String address)
MockMailboxgetMessagesSentTo in interface MockMailboxaddress - the email address we want to retrieve mail frompublic void clear()
MockMailboxclear in interface MockMailboxpublic int getTotalMessagesSent()
MockMailboxgetTotalMessagesSent in interface MockMailboxCopyright © 2020 JBoss by Red Hat. All rights reserved.