1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.commons.mail.mocks;
17
18 import java.util.List;
19 import java.util.Map;
20
21 import javax.mail.Authenticator;
22 import javax.mail.Session;
23 import javax.mail.internet.InternetAddress;
24 import javax.mail.internet.MimeMessage;
25 import javax.mail.internet.MimeMultipart;
26
27 import org.apache.commons.mail.Email;
28 import org.apache.commons.mail.EmailException;
29
30
31
32
33
34
35
36
37
38
39 public class MockEmailConcrete extends Email
40 {
41
42
43
44
45
46
47 public Email setMsg(String msg)
48 {
49
50
51 return null;
52 }
53
54
55
56
57
58 public boolean isDebug()
59 {
60 return this.debug;
61 }
62
63
64
65
66
67 public Authenticator getAuthenticator()
68 {
69 return this.authenticator;
70 }
71
72
73
74
75 public List getBccList()
76 {
77 return this.bccList;
78 }
79
80
81
82
83 public List getCcList()
84 {
85 return this.ccList;
86 }
87
88
89
90
91 public String getCharset()
92 {
93 return this.charset;
94 }
95
96
97
98
99 public Object getContentObject()
100 {
101 return this.content;
102 }
103
104
105
106
107 public MimeMultipart getContentMimeMultipart()
108 {
109 return this.emailBody;
110 }
111
112
113
114
115 public MimeMultipart getEmailBody()
116 {
117 return this.emailBody;
118 }
119
120
121
122
123 public InternetAddress getFromAddress()
124 {
125 return this.fromAddress;
126 }
127
128
129
130
131 public Map getHeaders()
132 {
133 return this.headers;
134 }
135
136
137
138
139 public String getHostName()
140 {
141 return this.hostName;
142 }
143
144
145
146
147 public MimeMessage getMessage()
148 {
149 return this.message;
150 }
151
152
153
154
155 public String getPopHost()
156 {
157 return this.popHost;
158 }
159
160
161
162
163 public String getPopPassword()
164 {
165 return this.popPassword;
166 }
167
168
169
170
171 public String getPopUsername()
172 {
173 return this.popUsername;
174 }
175
176
177
178
179 public List getReplyList()
180 {
181 return this.replyList;
182 }
183
184
185
186
187 public String getSmtpPort()
188 {
189 return this.smtpPort;
190 }
191
192
193
194
195 public String getSubject()
196 {
197 return this.subject;
198 }
199
200
201
202
203 public List getToList()
204 {
205 return this.toList;
206 }
207
208
209
210
211 public String getContentType()
212 {
213 return contentType;
214 }
215
216
217
218
219 public boolean isPopBeforeSmtp()
220 {
221 return popBeforeSmtp;
222 }
223
224
225
226
227
228 public Session getSession()
229 throws EmailException
230 {
231 return this.getMailSession();
232 }
233
234 }