PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/sigmah/src/test/java/org/sigmah/server/mail/MockMailSender.java

http://sigma-h.googlecode.com/
Java | 26 lines | 12 code | 7 blank | 7 comment | 0 complexity | 00ec9020377b7998d574d77f2c4065d2 MD5 | raw file
 1/*
 2 * All Sigmah code is released under the GNU General Public License v3
 3 * See COPYRIGHT.txt and LICENSE.txt.
 4 */
 5
 6package org.sigmah.server.mail;
 7
 8import org.apache.commons.mail.Email;
 9import org.apache.commons.mail.EmailException;
10
11import java.util.ArrayList;
12import java.util.List;
13
14/**
15 * @author Alex Bertram
16 */
17public class MockMailSender implements MailSender {
18
19    public List<Email> sentMail = new ArrayList<Email>();
20
21
22    @Override
23    public void send(Email message) throws EmailException {
24        sentMail.add(message);
25    }
26}