Class ImapMailConnector
- java.lang.Object
-
- eu.tsystems.mms.tic.testframework.mailconnector.util.AbstractMailConnector
-
- eu.tsystems.mms.tic.testframework.mailconnector.util.AbstractInboxConnector
-
- eu.tsystems.mms.tic.testframework.mailconnector.imap.ImapMailConnector
-
- All Implemented Interfaces:
eu.tsystems.mms.tic.testframework.logging.Loggable
public class ImapMailConnector extends AbstractInboxConnector implements eu.tsystems.mms.tic.testframework.logging.Loggable
MailConnector using the IMAP Protocol. Creates a session with values from mailconnection.properties.
-
-
Field Summary
-
Fields inherited from class eu.tsystems.mms.tic.testframework.mailconnector.util.AbstractMailConnector
sessionPropertiesConfigurationConsumer
-
-
Constructor Summary
Constructors Constructor Description ImapMailConnector()Constructor, creates a ImapMailConnector object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmarkAllMailsAsSeen()Marks all messages in inbox as seen.protected voidopenSession()Open a new IMAP Session and save in session object.-
Methods inherited from class eu.tsystems.mms.tic.testframework.mailconnector.util.AbstractInboxConnector
deleteAllMessages, deleteMessage, deleteMessage, deleteMessage, deleteMessage, deleteMessage, deleteMessage, deleteMessages, deleteMessages, getMessageCount, getMessageCount, moveMessage, moveMessage, moveMessage, query, waitForMails, waitForMails, waitForMails, waitForMails, waitForMails, waitForMails
-
Methods inherited from class eu.tsystems.mms.tic.testframework.mailconnector.util.AbstractMailConnector
configureSessionProperties, createDefaultSession, getInboxFolder, getPassword, getPort, getServer, getSession, getUsername, isDebug, isSslEnabled, setDebug, setInboxFolder, setPassword, setPort, setServer, setSession, setSslEnabled, setUsername
-
-
-
-
Method Detail
-
openSession
protected void openSession()
Open a new IMAP Session and save in session object.- Specified by:
openSessionin classAbstractMailConnector
-
markAllMailsAsSeen
public void markAllMailsAsSeen() throws eu.tsystems.mms.tic.testframework.exceptions.SystemExceptionMarks all messages in inbox as seen.- Throws:
eu.tsystems.mms.tic.testframework.exceptions.SystemException- Error connecting with Server.
-
-