Clover Coverage Report - Atlassian Mail
Coverage timestamp: Mon Sep 29 2008 21:26:36 CDT
21   202   41   0.51
0   155   1.95   41
41     1  
1    
 
 
  MockMessage       Line # 15 21 41 0% 0.0
 
No Tests
 
1    package test.mock.mail;
2   
3    import javax.mail.*;
4    import javax.activation.DataHandler;
5    import java.util.Enumeration;
6    import java.util.Date;
7    import java.io.IOException;
8    import java.io.InputStream;
9    import java.io.OutputStream;
10   
11   
12    /**
13    * A dummy Message implementation for testing.
14    */
 
15    public class MockMessage extends Message
16    {
17   
 
18  0 toggle public void addFrom(Address[] addresses) throws MessagingException
19    {
20    }
21   
 
22  0 toggle public void addHeader(String string, String string1) throws MessagingException
23    {
24    }
25   
 
26  0 toggle public void addRecipients(RecipientType recipientType, Address[] addresses) throws MessagingException
27    {
28    }
29   
 
30  0 toggle public Enumeration getAllHeaders() throws MessagingException
31    {
32  0 return null;
33    }
34   
 
35  0 toggle public Object getContent() throws IOException, MessagingException
36    {
37  0 return null;
38    }
39   
 
40  0 toggle public String getContentType() throws MessagingException
41    {
42  0 return null;
43    }
44   
 
45  0 toggle public DataHandler getDataHandler() throws MessagingException
46    {
47  0 return null;
48    }
49   
 
50  0 toggle public String getDescription() throws MessagingException
51    {
52  0 return null;
53    }
54   
 
55  0 toggle public String getDisposition() throws MessagingException
56    {
57  0 return null;
58    }
59   
 
60  0 toggle public String getFileName() throws MessagingException
61    {
62  0 return null;
63    }
64   
 
65  0 toggle public Flags getFlags() throws MessagingException
66    {
67  0 return null;
68    }
69   
 
70  0 toggle public Address[] getFrom() throws MessagingException
71    {
72  0 return new Address[0];
73    }
74   
 
75  0 toggle public String[] getHeader(String string) throws MessagingException
76    {
77  0 return new String[0];
78    }
79   
 
80  0 toggle public InputStream getInputStream() throws IOException, MessagingException
81    {
82  0 return null;
83    }
84   
 
85  0 toggle public int getLineCount() throws MessagingException
86    {
87  0 return 0;
88    }
89   
 
90  0 toggle public Enumeration getMatchingHeaders(String[] strings) throws MessagingException
91    {
92  0 return null;
93    }
94   
 
95  0 toggle public Enumeration getNonMatchingHeaders(String[] strings) throws MessagingException
96    {
97  0 return null;
98    }
99   
 
100  0 toggle public Date getReceivedDate() throws MessagingException
101    {
102  0 return null;
103    }
104   
 
105  0 toggle public Address[] getRecipients(RecipientType recipientType) throws MessagingException
106    {
107  0 return new Address[0];
108    }
109   
 
110  0 toggle public Date getSentDate() throws MessagingException
111    {
112  0 return null;
113    }
114   
 
115  0 toggle public int getSize() throws MessagingException
116    {
117  0 return 0;
118    }
119   
 
120  0 toggle public String getSubject() throws MessagingException
121    {
122  0 return null;
123    }
124   
 
125  0 toggle public boolean isMimeType(String string) throws MessagingException
126    {
127  0 return false;
128    }
129   
 
130  0 toggle public void removeHeader(String string) throws MessagingException
131    {
132    }
133   
 
134  0 toggle public Message reply(boolean b) throws MessagingException
135    {
136  0 return null;
137    }
138   
 
139  0 toggle public void saveChanges() throws MessagingException
140    {
141    }
142   
 
143  0 toggle public void setContent(Multipart multipart) throws MessagingException
144    {
145    }
146   
 
147  0 toggle public void setContent(Object object, String string) throws MessagingException
148    {
149    }
150   
 
151  0 toggle public void setDataHandler(DataHandler dataHandler) throws MessagingException
152    {
153    }
154   
 
155  0 toggle public void setDescription(String string) throws MessagingException
156    {
157    }
158   
 
159  0 toggle public void setDisposition(String string) throws MessagingException
160    {
161    }
162   
 
163  0 toggle public void setFileName(String string) throws MessagingException
164    {
165    }
166   
 
167  0 toggle public void setFlags(Flags flags, boolean b) throws MessagingException
168    {
169    }
170   
 
171  0 toggle public void setFrom() throws MessagingException
172    {
173    }
174   
 
175  0 toggle public void setFrom(Address address) throws MessagingException
176    {
177    }
178   
 
179  0 toggle public void setHeader(String string, String string1) throws MessagingException
180    {
181    }
182   
 
183  0 toggle public void setRecipients(RecipientType recipientType, Address[] addresses) throws MessagingException
184    {
185    }
186   
 
187  0 toggle public void setSentDate(Date date) throws MessagingException
188    {
189    }
190   
 
191  0 toggle public void setSubject(String string) throws MessagingException
192    {
193    }
194   
 
195  0 toggle public void setText(String string) throws MessagingException
196    {
197    }
198   
 
199  0 toggle public void writeTo(OutputStream outputStream) throws IOException, MessagingException
200    {
201    }
202    }