01: package abbot.util;
02:
03: import junit.framework.*;
04: import junit.extensions.abbot.*;
05:
06: // TODO: need some form of auto-verification
07: public class LauncherTest extends TestCase {
08:
09: // only run these tests manually, since we can't control the results
10: private static boolean run = false;
11:
12: public void testMailTo() throws Exception {
13: if (run)
14: Launcher.mail("email@address", "subject here & some",
15: "message body with escape chars <[%]>",
16: "copies@here", "blindcopies@here");
17: }
18:
19: public void testBrowseTo() throws Exception {
20: if (run)
21: Launcher.open("http://abbot.sf.net");
22: }
23:
24: public LauncherTest(String name) {
25: super (name);
26: }
27:
28: public static void main(String[] args) {
29: run = true;
30: TestHelper.runTests(args, LauncherTest.class);
31: }
32: }
|