1
2
3
4
5
6
7
8
9
10
11 package org.mule.transport.email.connectors;
12
13 import org.mule.api.transport.Connector;
14 import org.mule.transport.email.ImapConnector;
15
16 import com.icegreen.greenmail.util.ServerSetup;
17
18
19
20
21 public class ImapConnectorTestCase extends AbstractReceivingMailConnectorTestCase
22 {
23
24 public ImapConnectorTestCase()
25 {
26 this(50012);
27 }
28
29 public ImapConnectorTestCase(int port)
30 {
31 super(ServerSetup.PROTOCOL_IMAP, port);
32 }
33
34
35 public Connector createConnector() throws Exception
36 {
37 ImapConnector connector = new ImapConnector();
38 connector.setName("ImapConnector");
39 connector.setCheckFrequency(POLL_PERIOD_MS);
40 connector.setServiceOverrides(newEmailToStringServiceOverrides());
41 return connector;
42 }
43
44 }