Clover Coverage Report - Atlassian Mail
Coverage timestamp: Mon Sep 29 2008 21:26:36 CDT
1   55   2   0.5
0   32   2   2
2     1  
1    
 
 
  AbstractMailServerManager       Line # 23 1 2 33.3% 0.33333334
 
  (1)
 
1    package com.atlassian.mail.server.managers;
2   
3    import alt.javax.mail.Session;
4    import alt.javax.mail.SessionImpl;
5    import com.atlassian.mail.MailException;
6    import com.atlassian.mail.server.MailServer;
7    import com.atlassian.mail.server.MailServerManager;
8    import com.atlassian.mail.server.PopMailServer;
9    import com.atlassian.mail.server.SMTPMailServer;
10   
11    import javax.mail.Authenticator;
12    import java.util.List;
13    import java.util.Map;
14    import java.util.Properties;
15   
16    /**
17    * Created by IntelliJ IDEA.
18    * User: Administrator
19    * Date: Dec 9, 2002
20    * Time: 2:30:39 PM
21    * To change this template use Options | File Templates.
22    */
 
23    public abstract class AbstractMailServerManager implements MailServerManager
24    {
 
25  1 toggle public void init(Map params)
26    {
27    // by default, do nothing
28    }
29   
30    public abstract MailServer getMailServer(Long id) throws MailException;
31   
32    public abstract MailServer getMailServer(String name) throws MailException;
33   
34    public abstract List getServerNames() throws MailException;
35   
36    public abstract List getSmtpMailServers() throws MailException;
37   
38    public abstract List getPopMailServers() throws MailException;
39   
40    public abstract Long create(MailServer mailServer) throws MailException;
41   
42    public abstract void update(MailServer mailServer) throws MailException;
43   
44    public abstract void delete(Long mailServerId) throws MailException;
45   
46    public abstract SMTPMailServer getDefaultSMTPMailServer() throws MailException;
47   
48    public abstract PopMailServer getDefaultPopMailServer() throws MailException;
49   
 
50  0 toggle public Session getSession(Properties props, Authenticator auth)
51    {
52  0 return new SessionImpl(javax.mail.Session.getInstance(props, auth));
53    }
54   
55    }