Package org.alfresco.utility.data
Class DataEmail
- java.lang.Object
-
- org.alfresco.utility.data.TestData<DataEmail>
-
- org.alfresco.utility.data.DataEmail
-
-
Field Summary
-
Fields inherited from class org.alfresco.utility.data.TestData
currentUser, EMAIL, PASSWORD, tasProperties
-
-
Constructor Summary
Constructors Constructor Description DataEmail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.mail.Message[]assertEmailHasBeenReceived(UserModel userModel, java.lang.String host, int port, java.lang.String protocol, java.lang.String subject)Assert that a message with subject@subjecthas been received and returns the message e.g.-
Methods inherited from class org.alfresco.utility.data.TestData
assertExtensionAmpExists, assertLogLineIs, getAdminUser, getAlfrescoHome, getCurrentSite, getCurrentSpace, getCurrentUser, getDataDictionaryPath, getLastResource, getRootPath, getSitesPath, getUserHomesPath, isAFile, setCurrentSite, setCurrentSpace, setCurrentUser, setLastResource, usingAdmin, usingLastServerLogLines, usingResource, usingRoot, usingSite, usingSite, usingUser, usingUserHome, usingUserHome, withJMX
-
-
-
-
Method Detail
-
assertEmailHasBeenReceived
public javax.mail.Message[] assertEmailHasBeenReceived(UserModel userModel, java.lang.String host, int port, java.lang.String protocol, java.lang.String subject) throws java.lang.Exception
Assert that a message with subject@subjecthas been received and returns the message e.g. assertEmailHasBeenReceived(userModel, "imap.gmail.com", "imaps", messageSubject") will connect to "imap.gmail.com" with the username and password from userModel, will search for a message with the subject "messageSubject", assert that it exists and return the message- Throws:
java.lang.Exception
-
-