/*
 * Created on Jan 1, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package org.greenstone.gsdlas.util;

import javax.mail.MessagingException;

import junit.framework.TestCase;

/**
 * @author andrea
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class MailerTest extends TestCase {

    public static void main(String[] args) {
        junit.textui.TestRunner.run(MailerTest.class);
    }

    public final void testSendMail() {
        Mailer mailer = new Mailer("andrea@localhost", "localhost");
        try {
            mailer.sendMail("andrea@localhost", "test", "test message testing...\n");
        } catch (MessagingException e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
    }

}
