View Javadoc

1   /*
2    * $Id: SmtpsConnectorTestCase.java 19873 2010-10-08 23:54:59Z dzapata $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.transport.email.connectors;
12  
13  import org.mule.api.transport.Connector;
14  import org.mule.transport.email.SmtpsConnector;
15  
16  import com.icegreen.greenmail.util.ServerSetup;
17  
18  public class SmtpsConnectorTestCase extends SmtpConnectorTestCase
19  {
20      public SmtpsConnectorTestCase()
21      {
22          super(NO_INITIAL_EMAIL, ServerSetup.PROTOCOL_SMTPS);
23          setStartContext(true);
24      }
25  
26      @Override
27      public Connector createConnector() throws Exception
28      {
29          SmtpsConnector connector = new SmtpsConnector(muleContext);
30          connector.setName("SmtpsConnector");
31          connector.setTrustStore("greenmail.jks");
32          connector.setTrustStorePassword("changeit");
33          return connector;
34      }
35  }