org.appfuse.util
Class MailUtilTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.appfuse.util.MailUtilTest
All Implemented Interfaces:
Test

public class MailUtilTest
extends TestCase

Tests the methods in MailUtil class


Constructor Summary
MailUtilTest(String name)
          Constructor
 
Method Summary
static void main(String[] args)
          main method
protected  void setUp()
          load resources and setup values
 void testSendHTMLMessage()
          Sends an html-based e-mail
 void testSendMessage()
           
 void testSendMessageWithAttachment()
           
 void testSendTextMessage()
          Sends a text-based e-mail
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MailUtilTest

public MailUtilTest(String name)
Constructor

Parameters:
name - name of test
Method Detail

main

public static void main(String[] args)
main method

Parameters:
args - any arguments for this test

setUp

protected void setUp()
              throws Exception
load resources and setup values

Throws:
Exception - an exception

testSendTextMessage

public void testSendTextMessage()
                         throws Exception
Sends a text-based e-mail

Throws:
Exception

testSendHTMLMessage

public void testSendHTMLMessage()
                         throws Exception
Sends an html-based e-mail

Throws:
Exception

testSendMessage

public void testSendMessage()
                     throws Exception
Throws:
Exception

testSendMessageWithAttachment

public void testSendMessageWithAttachment()
                                   throws Exception
Throws:
Exception


Copyright © 2002-2004