public interface EmailHaveExpectations
| Modifier and Type | Method and Description |
|---|---|
void |
header(String name,
Pattern pattern)
Expectations about the value of the MIME header.
|
void |
header(String name,
String value)
Expectations about the value of the MIME header.
|
void |
recipient(Pattern pattern)
Expectations about the recipient of an email.
|
void |
recipient(String value)
Expectations about the recipient of an email.
|
void |
sender(Pattern pattern)
Expectations about the sender of an email.
|
void |
sender(String value)
Expectations about the sender of an email.
|
void |
subject(Pattern pattern)
Expectations about the subject of an email.
|
void |
subject(String value)
Expectations about the subject of an email.
|
void |
text(Pattern pattern)
Expectations about the text of an email.
|
void |
text(String value)
Expectations about the text of an email.
|
void sender(String value)
value - the expected sendervoid sender(Pattern pattern)
pattern - the expected sender as a regular expressionvoid recipient(String value)
value - the expected recipientvoid recipient(Pattern pattern)
pattern - the expected recipient as a regular expressionvoid subject(String value)
value - the expected subjectvoid subject(Pattern pattern)
pattern - the expected subject as a regular expressionvoid header(String name, String value)
name - the name of the header (case-insensitive)value - the value of the headervoid header(String name, Pattern pattern)
name - the name of the header (case-insensitive)pattern - the value of the header as a regular expressionvoid text(String value)
value - the expected textvoid text(Pattern pattern)
pattern - the expected text as a regular expressionCreated by Kornél Simon, 2022