001    /*
002     * Copyright 2007-2010 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package mocks;
017    
018    import java.io.InputStream;
019    
020    import javax.mail.internet.MimeMessage;
021    
022    import org.springframework.mail.MailException;
023    import org.springframework.mail.SimpleMailMessage;
024    import org.springframework.mail.javamail.JavaMailSender;
025    import org.springframework.mail.javamail.MimeMessagePreparator;
026    
027    /**
028     * This is a description of what this class does - g don't forget to fill this in. 
029     * 
030     * @author Kuali Rice Team (rice.collab@kuali.org)
031     *
032     */
033    public class MockJavaMailSender implements JavaMailSender{
034    
035             protected final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(getClass());
036            
037            /**
038             * This overridden method ...
039             * 
040             * @see org.springframework.mail.MailSender#send(org.springframework.mail.SimpleMailMessage)
041             */
042            public void send(SimpleMailMessage arg0) throws MailException {                         
043                    LOG.info("" + arg0.toString());         
044            }
045    
046            /**
047             * This overridden method ...
048             * 
049             * @see org.springframework.mail.MailSender#send(org.springframework.mail.SimpleMailMessage[])
050             */
051            public void send(SimpleMailMessage[] arg0) throws MailException {
052                    // TODO g - THIS METHOD NEEDS JAVADOCS
053                    
054            }
055    
056            /**
057             * This overridden method ...
058             * 
059             * @see org.springframework.mail.javamail.JavaMailSender#createMimeMessage()
060             */
061            public MimeMessage createMimeMessage() {
062                    // TODO g - THIS METHOD NEEDS JAVADOCS
063                    return null;
064            }
065    
066            /**
067             * This overridden method ...
068             * 
069             * @see org.springframework.mail.javamail.JavaMailSender#createMimeMessage(java.io.InputStream)
070             */
071            public MimeMessage createMimeMessage(InputStream arg0) throws MailException {
072                    // TODO g - THIS METHOD NEEDS JAVADOCS
073                    return null;
074            }
075    
076            /**
077             * This overridden method ...
078             * 
079             * @see org.springframework.mail.javamail.JavaMailSender#send(javax.mail.internet.MimeMessage)
080             */
081            public void send(MimeMessage arg0) throws MailException {
082                    // TODO g - THIS METHOD NEEDS JAVADOCS
083                    
084            }
085    
086            /**
087             * This overridden method ...
088             * 
089             * @see org.springframework.mail.javamail.JavaMailSender#send(javax.mail.internet.MimeMessage[])
090             */
091            public void send(MimeMessage[] arg0) throws MailException {
092                    // TODO g - THIS METHOD NEEDS JAVADOCS
093                    
094            }
095    
096            /**
097             * This overridden method ...
098             * 
099             * @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    }