Java Code Examples for com.icegreen.greenmail.util.ServerSetupTest#POP3

The following examples show how to use com.icegreen.greenmail.util.ServerSetupTest#POP3 . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestConsumeEmail.java    From localization_nifi with Apache License 2.0 5 votes vote down vote up
@Before
public void setUp() {
    mockIMAP4Server = new GreenMail(ServerSetupTest.IMAP);
    mockIMAP4Server.start();
    mockPOP3Server = new GreenMail(ServerSetupTest.POP3);
    mockPOP3Server.start();

    imapUser = mockIMAP4Server.setUser("[email protected]", "nifiUserImap", "nifiPassword");
    popUser = mockPOP3Server.setUser("[email protected]", "nifiUserPop", "nifiPassword");
}
 
Example 2
Source File: MailOperatorFactoryTest.java    From digdag with Apache License 2.0 5 votes vote down vote up
@BeforeClass
public static void smtpSetup()
{
    ServerSetup servers[] = {ServerSetupTest.SMTP, ServerSetupTest.POP3};
    greenMail = new GreenMail(servers);
    greenMail.start();
    smtpPort = greenMail.getSmtp().getPort();
}
 
Example 3
Source File: ITestConsumeEmail.java    From nifi with Apache License 2.0 5 votes vote down vote up
@Before
public void setUp() {
    mockIMAP4Server = new GreenMail(ServerSetupTest.IMAP);
    mockIMAP4Server.start();
    mockPOP3Server = new GreenMail(ServerSetupTest.POP3);
    mockPOP3Server.start();

    imapUser = mockIMAP4Server.setUser("[email protected]", "nifiUserImap", "nifiPassword");
    popUser = mockPOP3Server.setUser("[email protected]", "nifiUserPop", "nifiPassword");
}