1 /*
2 * Copyright 2007-2010 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package mocks;
17
18 import java.io.InputStream;
19
20 import javax.mail.internet.MimeMessage;
21
22 import org.springframework.mail.MailException;
23 import org.springframework.mail.SimpleMailMessage;
24 import org.springframework.mail.javamail.JavaMailSender;
25 import org.springframework.mail.javamail.MimeMessagePreparator;
26
27 /**
28 * This is a description of what this class does - g don't forget to fill this in.
29 *
30 * @author Kuali Rice Team (rice.collab@kuali.org)
31 *
32 */
33 public class MockJavaMailSender implements JavaMailSender{
34
35 protected final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(getClass());
36
37 /**
38 * This overridden method ...
39 *
40 * @see org.springframework.mail.MailSender#send(org.springframework.mail.SimpleMailMessage)
41 */
42 public void send(SimpleMailMessage arg0) throws MailException {
43 LOG.info("" + arg0.toString());
44 }
45
46 /**
47 * This overridden method ...
48 *
49 * @see org.springframework.mail.MailSender#send(org.springframework.mail.SimpleMailMessage[])
50 */
51 public void send(SimpleMailMessage[] arg0) throws MailException {
52 // TODO g - THIS METHOD NEEDS JAVADOCS
53
54 }
55
56 /**
57 * This overridden method ...
58 *
59 * @see org.springframework.mail.javamail.JavaMailSender#createMimeMessage()
60 */
61 public MimeMessage createMimeMessage() {
62 // TODO g - THIS METHOD NEEDS JAVADOCS
63 return null;
64 }
65
66 /**
67 * This overridden method ...
68 *
69 * @see org.springframework.mail.javamail.JavaMailSender#createMimeMessage(java.io.InputStream)
70 */
71 public MimeMessage createMimeMessage(InputStream arg0) throws MailException {
72 // TODO g - THIS METHOD NEEDS JAVADOCS
73 return null;
74 }
75
76 /**
77 * This overridden method ...
78 *
79 * @see org.springframework.mail.javamail.JavaMailSender#send(javax.mail.internet.MimeMessage)
80 */
81 public void send(MimeMessage arg0) throws MailException {
82 // TODO g - THIS METHOD NEEDS JAVADOCS
83
84 }
85
86 /**
87 * This overridden method ...
88 *
89 * @see org.springframework.mail.javamail.JavaMailSender#send(javax.mail.internet.MimeMessage[])
90 */
91 public void send(MimeMessage[] arg0) throws MailException {
92 // TODO g - THIS METHOD NEEDS JAVADOCS
93
94 }
95
96 /**
97 * This overridden method ...
98 *
99 * @see org.springframework.mail.javamail.JavaMailSender#send(org.springframework.mail.javamail.MimeMessagePreparator)
100 */
101 public void send(MimeMessagePreparator arg0) throws MailException {
102 // TODO g - THIS METHOD NEEDS JAVADOCS
103
104 }
105
106 /**
107 * This overridden method ...
108 *
109 * @see org.springframework.mail.javamail.JavaMailSender#send(org.springframework.mail.javamail.MimeMessagePreparator[])
110 */
111 public void send(MimeMessagePreparator[] arg0) throws MailException {
112 // TODO g - THIS METHOD NEEDS JAVADOCS
113
114 }
115
116
117
118
119
120 }