Clover Coverage Report - Atlassian Mail
Coverage timestamp: Mon Sep 29 2008 21:26:36 CDT
10   59   9   1.11
0   46   0.9   9
9     1  
1    
 
 
  AbstractMailQueueItem       Line # 7 10 9 0% 0.0
 
No Tests
 
1    package com.atlassian.mail.queue;
2   
3    import com.atlassian.mail.MailThreader;
4   
5    import java.util.Date;
6   
 
7    public abstract class AbstractMailQueueItem implements MailQueueItem
8    {
9    String subject;
10    Date dateQueued;
11    private int timesSent = 0;
12    protected MailThreader mailThreader;
13   
14   
 
15  0 toggle public AbstractMailQueueItem()
16    {
17  0 this.dateQueued = new Date();
18    }
19   
 
20  0 toggle public AbstractMailQueueItem(String subject)
21    {
22  0 this();
23  0 this.subject = subject;
24    }
25   
 
26  0 toggle public String getSubject()
27    {
28  0 return subject;
29    }
30   
 
31  0 toggle public Date getDateQueued()
32    {
33  0 return dateQueued;
34    }
35   
 
36  0 toggle public int getSendCount()
37    {
38  0 return timesSent;
39    }
40   
 
41  0 toggle public boolean hasError()
42    {
43  0 return (timesSent > 0);
44    }
45   
 
46  0 toggle protected void incrementSendCount()
47    {
48  0 timesSent++;
49    }
50   
 
51  0 toggle public void setMailThreader(MailThreader mailThreader) {
52  0 this.mailThreader = mailThreader;
53    }
54   
 
55  0 toggle public void execute() throws Exception
56    {
57  0 send();
58    }
59    }