1   /*
2    * Created by IntelliJ IDEA.
3    * User: owen
4    * Date: Nov 25, 2002
5    * Time: 9:05:42 AM
6    * CVS Revision: $Revision: 1.2 $
7    * Last CVS Commit: $Date: 2002/12/09 07:22:24 $
8    * Author of last CVS Commit: $Author: mike $
9    * To change this template use Options | File Templates.
10   */
11  package test.mock.mail.server;
12  
13  import com.atlassian.mail.MailProtocol;
14  import com.atlassian.mail.server.AbstractMailServer;
15  import com.atlassian.mail.server.MailServerManager;
16  
17  import alt.javax.mail.Session;
18  
19  import javax.mail.Authenticator;
20  import javax.naming.NamingException;
21  
22  public class MockAbstractMailServer extends AbstractMailServer
23  {
24      public MockAbstractMailServer(Long id, String name, String description, MailProtocol protocol, String serverName, String port, String username, String password )
25      {
26          super(id, name, description, protocol, serverName, port, username, password, 10000);
27      }
28  
29      public String getType()
30      {
31          return MailServerManager.SERVER_TYPES[1];
32      }
33  
34      public Session getSession() throws NamingException
35      {
36          return null;
37      }
38  
39      @Override
40      protected Authenticator getAuthenticator() {
41          return null;
42      }
43  
44      public void setId(Long id)
45      {
46          super.setId(id);
47      }
48  
49      public void setName(String name)
50      {
51          super.setName(name);
52      }
53  
54      public void setDescription(String description)
55      {
56          super.setDescription(description);
57      }
58  
59      public void setHostname(String serverName)
60      {
61          super.setHostname(serverName);
62      }
63  
64      public void setUsername(String username)
65      {
66          super.setUsername(username);
67      }
68  
69      public void setPassword(String password)
70      {
71          super.setPassword(password);
72      }
73  }