Package com.icegreen.greenmail.util

Examples of com.icegreen.greenmail.util.GreenMail


    GreenMail server;

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        server = new GreenMail();
        server.start();
    }
View Full Code Here


   */
  @Test
  public void retrieveFromMailServer()
      throws Exception
  {
    mailServer = new GreenMail(
        new ServerSetup(portReservationService.reservePort(), null, ServerSetup.PROTOCOL_SMTPS)
    );
    mailServer.start();

    // sleep for 10 seconds to give time to mail server to startup
View Full Code Here

    checkState(server == null, "Server already started");

    int port = TestProperties.getInteger("email.server.port");
    log.info("Starting; port: {}", port);

    GreenMail server = new GreenMail(new ServerSetup(port, null, ServerSetup.PROTOCOL_SMTP));
    server.setUser("system@nexus.org", "smtp-username", "smtp-password");
    server.start();

    this.server = server;
  }
View Full Code Here

    socket.close();

    // ServerSetup smtp = new ServerSetup( 1234, null, ServerSetup.PROTOCOL_SMTP );
    ServerSetup smtp = new ServerSetup(this.emailServerPort, null, ServerSetup.PROTOCOL_SMTP);

    server = new GreenMail(smtp);
    server.setUser("system@nexus.org", "smtp-username", "smtp-password");
    server.start();

    this.lookup(SecuritySystem.class).start();
  }
View Full Code Here

        new File("./data/cooling/reports").mkdirs();


        final ServerSetup imapSetup = new ServerSetup(2626, "127.0.0.1", ImapConnector.IMAP);
        imapServer = new GreenMail(imapSetup);
        imapServer.start();
        GreenMailUser user = imapServer.getManagers()
                .getUserManager()
                .createUser("cooling@prancingdonkey.com", "cooling", "password");
View Full Code Here

        new File("./data/cooling/reports").mkdirs();


        final ServerSetup smtpSetup = new ServerSetup(2525, "127.0.0.1", SmtpConnector.SMTP);
        smtpServer = new GreenMail(smtpSetup);

        smtpServer.start();

        final ServerSetup imapSetup = new ServerSetup(2626, "127.0.0.1", ImapConnector.IMAP);
        imapServer = new GreenMail(imapSetup);
        imapServer.start();
        GreenMailUser user = imapServer.getManagers()
                .getUserManager()
                .createUser("cooling@prancingdonkey.com", "cooling", "password");
View Full Code Here

        new File("./data/cooling/reports").mkdirs();


        final ServerSetup imapSetup = new ServerSetup(2626, "127.0.0.1", ImapConnector.IMAP);
        imapServer = new GreenMail(imapSetup);
        imapServer.start();
        GreenMailUser user = imapServer.getManagers()
                .getUserManager()
                .createUser("cooling@prancingdonkey.com", "cooling", "password");
View Full Code Here

        new File("./data/cooling/reports").mkdirs();


        final ServerSetup imapSetup = new ServerSetup(2626, "127.0.0.1", ImapConnector.IMAP);
        imapServer = new GreenMail(imapSetup);
        imapServer.start();
        GreenMailUser user = imapServer.getManagers()
                .getUserManager()
                .createUser("cooling@prancingdonkey.com", "cooling", "password");
View Full Code Here

    private GreenMail greenMail;

    @BeforeClass
    protected void setupControllerTest() {
        greenMail = new GreenMail(
                new ServerSetup[] {
                        new ServerSetup(30000, "127.0.0.1", ServerSetup.PROTOCOL_SMTP)
                }
        );
        greenMail.start();
View Full Code Here

    private GreenMail greenMail;

    @BeforeClass
    protected void setupEmailTest() {
        greenMail = new GreenMail(
                new ServerSetup[] {
                        new ServerSetup(30000, "127.0.0.1", ServerSetup.PROTOCOL_SMTP)
                }
        );
        greenMail.start();
View Full Code Here

TOP

Related Classes of com.icegreen.greenmail.util.GreenMail

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.