View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.transport.email.connectors;
8   
9   import org.mule.api.transport.Connector;
10  import org.mule.transport.email.Pop3Connector;
11  
12  import com.icegreen.greenmail.util.ServerSetup;
13  
14  /**
15   * Simple tests for pulling from a POP3 server.
16   */
17  public class Pop3ConnectorTestCase extends AbstractReceivingMailConnectorTestCase
18  {
19  
20      public Pop3ConnectorTestCase()
21      {
22          super(ServerSetup.PROTOCOL_POP3);
23      }
24  
25      public Connector createConnector() throws Exception
26      {
27          Pop3Connector connector = new Pop3Connector(muleContext);
28          connector.setName("Pop3Connector");
29          connector.setCheckFrequency(POLL_PERIOD_MS);
30          connector.setServiceOverrides(newEmailToStringServiceOverrides());
31          return connector;
32      }
33  
34  }