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
|
Rev | Line | |
---|
[8888] | 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 | */
|
---|
| 7 | package org.greenstone.gsdlas.util;
|
---|
| 8 |
|
---|
| 9 | import javax.mail.MessagingException;
|
---|
| 10 |
|
---|
| 11 | import 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 | */
|
---|
| 19 | public 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.