1   /*
2    * $Id: Pop3sConnectorTestCase.java 10489 2008-01-23 17:53:38Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.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.Pop3sConnector;
15  
16  import com.icegreen.greenmail.util.ServerSetup;
17  
18  /**
19   * Simple tests for pulling from an IMAP server.
20   */
21  public class Pop3sConnectorTestCase extends AbstractReceivingMailConnectorTestCase
22  {
23  
24      public Pop3sConnectorTestCase()
25      {
26          super(ServerSetup.PROTOCOL_POP3S, 50009);
27      }
28  
29      public Connector createConnector() throws Exception
30      {
31          Pop3sConnector connector = new Pop3sConnector();
32          connector.setName("Pop3sConnector");
33          connector.setCheckFrequency(POLL_PERIOD_MS);
34          connector.setServiceOverrides(newEmailToStringServiceOverrides());
35          connector.setTrustStorePassword("password");
36          connector.setTrustStore("greenmail-truststore");
37          connector.setMuleContext(muleContext);
38          return connector;
39      }
40  
41  }