Examples of ServerSetup


Examples of com.icegreen.greenmail.util.ServerSetup

  }

  @Override
  protected ServerSetup setupReceiveServer() {
    return new ServerSetup(port, "localhost", protocol);
  }
View Full Code Here

Examples of com.icegreen.greenmail.util.ServerSetup

    return new ServerSetup(port, "localhost", protocol);
  }

  @Override
  protected ServerSetup setupSendServer() {
    return new ServerSetup(smtpPort, "localhost", "smtp");
  }
View Full Code Here

Examples of com.icegreen.greenmail.util.ServerSetup

    @Setup @SuppressWarnings("unused")
    private void setUp(LogManager logManager, PortAllocator portAllocator) throws Exception {
        this.logManager = logManager;
        this.portAllocator = portAllocator;
        smtpServerSetup = new ServerSetup(portAllocator.allocatePort(), "127.0.0.1", ServerSetup.PROTOCOL_SMTP);
        storeServerSetup = new ServerSetup(portAllocator.allocatePort(), "127.0.0.1", protocol);
        greenMail = new GreenMail(new ServerSetup[] { smtpServerSetup, storeServerSetup });
        greenMail.start();
        smtpTunnel = new Tunnel(new InetSocketAddress("127.0.0.1", smtpServerSetup.getPort()));
        smtpTunnel.start();
        unallocatedAccounts = new LinkedList<Account>();
View Full Code Here

Examples of com.icegreen.greenmail.util.ServerSetup

  private int port = DEFAULT_PORT;

  @Override
  public void afterPropertiesSet() throws Exception {
    greenMail = new GreenMail(new ServerSetup(port, null, ServerSetup.PROTOCOL_SMTP));
    greenMail.setUser(account, password);
    greenMail.start();
  }
View Full Code Here

Examples of com.icegreen.greenmail.util.ServerSetup

    private JavaMailSender mailSender;

    @BeforeClass
    public static void startGreenMail() {
        ServerSetup[] config = new ServerSetup[2];
        config[0] = new ServerSetup(SMTP_PORT, SMTP_HOST, ServerSetup.PROTOCOL_SMTP);
        config[1] = new ServerSetup(POP3_PORT, POP3_HOST, ServerSetup.PROTOCOL_POP3);
        greenMail = new GreenMail(config);
        greenMail.setUser(MAIL_ADDRESS, MAIL_PASSWORD);
        greenMail.start();
    }
View Full Code Here

Examples of com.icegreen.greenmail.util.ServerSetup

     * @return An array of {@link ServerSetup} used to configure the embedded Greenmail server.
     */
    private ServerSetup[] getServerSetups() {
        if (isUseSSL()) {
            return new ServerSetup[]{
                    new ServerSetup(465 + getPortOffset(), null, ServerSetup.PROTOCOL_SMTPS),
                    new ServerSetup(995 + getPortOffset(), null, ServerSetup.PROTOCOL_POP3S),
                    new ServerSetup(993 + getPortOffset(), null, ServerSetup.PROTOCOL_IMAPS)
            };
        } else {
            return new ServerSetup[]{
                    new ServerSetup(25 + getPortOffset(), null, ServerSetup.PROTOCOL_SMTP),
                    new ServerSetup(110 + getPortOffset(), null, ServerSetup.PROTOCOL_POP3),
                    new ServerSetup(143 + getPortOffset(), null, ServerSetup.PROTOCOL_IMAP)
            };
        }
    }
View Full Code Here

Examples of org.apache.derbyTesting.junit.ServerSetup

        }
        BaseTestSuite suite = new BaseTestSuite();
        addVersionCombinations(suite);
        TestConfiguration config = TestConfiguration.getCurrent();
        return new SecurityManagerSetup(
                new ServerSetup(suite, "localhost", config.getPort()),
                // Need permission for getProtectionDomain to determine what
                // to put on the classpath for the spawned process(es).
                VersionCombinationConfigurator.class.getName().
                    replaceAll("\\.", "/") + ".policy",
                true);
View Full Code Here

Examples of org.apache.derbyTesting.junit.ServerSetup

        }
        TestSuite suite = new TestSuite();
        addVersionCombinations(suite);
        TestConfiguration config = TestConfiguration.getCurrent();
        return new SecurityManagerSetup(
                new ServerSetup(suite, "localhost", config.getPort()),
                // Need permission for getProtectionDomain to determine what
                // to put on the classpath for the spawned process(es).
                VersionCombinationConfigurator.class.getName().
                    replaceAll("\\.", "/") + ".policy",
                true);
View Full Code Here

Examples of org.jacorb.test.common.ServerSetup

    {
        Properties props = new Properties();
        props.put(ClientServerSetup.JACORB_REGRESSION_DISABLE_IMR, "true");
        props.put(CommonSetup.JACORB_REGRESSION_DISABLE_SECURITY, "true");

        setup1 = new ServerSetup(this, BasicServerImpl.class.getName());
        setup1.setUp();
        server1IOR = setup1.getServerIOR();

        setup2 = new ServerSetup(this, BasicServerImpl.class.getName());
        setup2.setUp();
        server2IOR = setup2.getServerIOR();
    }
View Full Code Here

Examples of org.jacorb.test.common.ServerSetup

    {
        orbSetup = new ORBSetup(this);
        orbSetup.setUp();
        orb = orbSetup.getORB();

        serverSetup = new ServerSetup(this, SyncScopeServerImpl.class.getName());
        serverSetup.setUp();
        server = SyncScopeServerHelper.narrow (orb.string_to_object(serverSetup.getServerIOR()));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.