public class EmailSteps extends Object
| Constructor and Description |
|---|
EmailSteps(PropertyStore propertyStore,
PlaceholderResolver placeholderResolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
startUpServer() |
void |
stopServer() |
void |
storeReceivedEmail(String address,
String propertyKey) |
void |
storeReceivedEmailWithSubject(String subject,
String address,
String propertyKey) |
void |
userShouldReceiveEmail(String address) |
void |
userShouldReceiveEmailWithSubject(String subject,
String address) |
public static final String SMTP_PORT
public EmailSteps(PropertyStore propertyStore, PlaceholderResolver placeholderResolver)
public void startUpServer()
@Then(value="^(?:we|he|she|the user|a user) should receive an email containing subject (.+) for (.+)$") public void userShouldReceiveEmailWithSubject(String subject, String address)
@Then(value="^(?:we|he|she|the user|a user) should receive an email for (.+)$") public void userShouldReceiveEmail(String address)
@And(value="^the email containing subject (.+) for (.+) is stored as (\\w+)$") public void storeReceivedEmailWithSubject(String subject, String address, String propertyKey) throws Exception
Exception@And(value="^the email for (.+) is stored as (\\w+)$") public void storeReceivedEmail(String address, String propertyKey) throws Exception
Exceptionpublic void stopServer()
Copyright © 2016. All rights reserved.