source: trunk/greenstone3-extensions/gsdl-as/test-src/org/greenstone/gsdlas/util/MailerTest.java@ 8888

Last change on this file since 8888 was 8888, checked in by schweer, 19 years ago

notifications

  • Property svn:keywords set to Author Date Id Revision
File size: 913 bytes
Line 
1/*
2 * Created on Jan 1, 2005
3 *
4 * TODO To change the template for this generated file go to
5 * Window - Preferences - Java - Code Style - Code Templates
6 */
7package org.greenstone.gsdlas.util;
8
9import javax.mail.MessagingException;
10
11import junit.framework.TestCase;
12
13/**
14 * @author andrea
15 *
16 * TODO To change the template for this generated type comment go to
17 * Window - Preferences - Java - Code Style - Code Templates
18 */
19public class MailerTest extends TestCase {
20
21 public static void main(String[] args) {
22 junit.textui.TestRunner.run(MailerTest.class);
23 }
24
25 public final void testSendMail() {
26 Mailer mailer = new Mailer("andrea@localhost", "localhost");
27 try {
28 mailer.sendMail("andrea@localhost", "test", "test message testing...\n");
29 } catch (MessagingException e) {
30 e.printStackTrace();
31 fail(e.getMessage());
32 }
33 }
34
35}
Note: See TracBrowser for help on using the repository browser.