View Javadoc
1 package org.hedwig.test; 2 3 import junit.framework.TestCase; 4 5 /*** 6 * @author Keith Gaddis 7 * 8 *enclosing_type 9 */ 10 import org.hedwig.core.*; 11 12 public class MailAccountTest extends TestCase { 13 14 private MailAccount _acct; 15 /*** 16 * Constructor for MailAccountTest. 17 * @param arg0 18 */ 19 public MailAccountTest(String arg0) { 20 super(arg0); 21 } 22 23 public static void main(String[] args) { 24 junit.textui.TestRunner.run(MailAccountTest.class); 25 } 26 27 /*** 28 * @see TestCase#setUp() 29 */ 30 protected void setUp() throws Exception { 31 super.setUp(); 32 _acct=new MailAccount(); 33 _acct.setAccountName("testKarmajunkie"); 34 _acct.setServer("mail.karmajunkie.com"); 35 _acct.setUserName("keith"); 36 _acct.setPass("superman"); 37 } 38 39 /*** 40 * @see TestCase#tearDown() 41 */ 42 protected void tearDown() throws Exception { 43 super.tearDown(); 44 } 45 46 public void testConnect() { 47 _acct.connect(); 48 assertTrue(_acct.isConnected()); 49 _acct.disconnect(); 50 } 51 52 }

This page was automatically generated by Maven