org.apache.commons.mail
Class InvalidAddressTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.mail.BaseEmailTestCase
              extended by org.apache.commons.mail.InvalidAddressTest
All Implemented Interfaces:
junit.framework.Test

public class InvalidAddressTest
extends BaseEmailTestCase

JUnit test case for invalid Addresses in Email Class

Since:
1.0
Version:
$Id: InvalidAddressTest.java 512612 2007-02-28 05:39:57Z dion $
Author:
Niall Pemberton

Field Summary
 
Fields inherited from class org.apache.commons.mail.BaseEmailTestCase
BODY_END_PAD, BODY_START_PAD, fakeMailServer, strTestMailFrom, strTestMailServer, strTestMailTo, strTestPasswd, strTestURL, strTestUser, testCharsNotValid, testCharsValid
 
Constructor Summary
InvalidAddressTest(String name)
           
 
Method Summary
protected  void setUp()
           
 void testAddInvalidBcc()
           
 void testAddInvalidCc()
           
 void testAddInvalidTo()
           
 void testSetInvalidFrom()
           
 
Methods inherited from class org.apache.commons.mail.BaseEmailTestCase
getMailServer, getMailServerPort, getMessageAsString, isMailServerStopped, saveEmailToFile, tearDown, validateSend, validateSend, validateSend
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidAddressTest

public InvalidAddressTest(String name)
Parameters:
name - name
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

testSetInvalidFrom

public void testSetInvalidFrom()
                        throws Exception
Throws:
Exception - Exception

testAddInvalidTo

public void testAddInvalidTo()
                      throws Exception
Throws:
Exception - Exception

testAddInvalidCc

public void testAddInvalidCc()
                      throws Exception
Throws:
Exception - Exception

testAddInvalidBcc

public void testAddInvalidBcc()
                       throws Exception
Throws:
Exception - Exception


Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.