public class MailboxesModel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.Set<java.lang.String> |
domains |
java.util.Map<java.lang.String,FakeMailbox> |
knownRecipients |
java.util.Set<java.lang.String> |
validSenders |
Constructor and Description |
---|
MailboxesModel() |
Modifier and Type | Method and Description |
---|---|
MailboxesModel |
addMailbox(FakeMailbox fm) |
MailboxesModel |
addValidSender(java.lang.String email) |
static MailboxesModel |
get() |
boolean |
isValidSender(java.lang.String email) |
java.util.Optional<FakeMailbox> |
mailbox(java.lang.String email) |
void |
reset() |
public final java.util.Map<java.lang.String,FakeMailbox> knownRecipients
public final java.util.Set<java.lang.String> validSenders
public final java.util.Set<java.lang.String> domains
public static MailboxesModel get()
public void reset()
public MailboxesModel addValidSender(java.lang.String email)
public boolean isValidSender(java.lang.String email)
public MailboxesModel addMailbox(FakeMailbox fm)
public java.util.Optional<FakeMailbox> mailbox(java.lang.String email)
Copyright © 2021. All Rights Reserved.