00001 package net.threebit.utils.sosc.test;
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 import java.io.*;
00023 import java.util.*;
00024 import java.util.logging.*;
00025 import junit.framework.*;
00026 import net.threebit.utils.sosc.*;
00027
00032 public class MailToolTest extends TestCase {
00033
00034 public void test2() throws Exception {
00035 MailMessage s = MailTool.newMessage();
00036 s.setFrom("kevin.odonnell@corp.canadareconnect.com","Kevin From");
00037 s.setSubject("This is a test.");
00038 s.addRecipient("kevin.odonnell@corp.canadareconnect.com","Kevin To O'Donnell");
00039 s.data("Body of text.");
00040 s.data("Body of text.");
00041 s.attachement(new File("/tmp/adv-supression-file14917.txt"));
00042 s.send();
00043 }
00044
00045 public void test1() throws Exception {
00046 if (true) { return; }
00047 MailMessage s = MailTool.newMessage();
00048 s.setFrom("kevino@kevino.net","From Kevin");
00049 s.setSubject("This is a test.");
00050 s.addRecipient("kevin.odonnell@corp.canadareconnect.com","Kevin To O'Donnell");
00051 for (int x = 0; x < 100; x++) {
00052 s.data("Just chillin on line number " + x);
00053 }
00054 System.out.println(new Date() + " send()");
00055 s.send();
00056 System.out.println(new Date() + " sent()");
00057 }
00058
00059 }