org.apache.commons.mail
Class InvalidInternetAddressTest

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.InvalidInternetAddressTest
All Implemented Interfaces:
junit.framework.Test

public class InvalidInternetAddressTest
extends BaseEmailTestCase

JUnit test case demonstrating InternetAddress validation.

Since:
1.0
Version:
$Id: InvalidInternetAddressTest.java 512208 2007-02-27 10:22:28Z 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
InvalidInternetAddressTest(String name)
           
 
Method Summary
protected  void setUp()
          Setup for a test
 void testStrictConstructor()
           
 void testValidateMethod()
           
 void testValidateMethodCharset()
           
 
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

InvalidInternetAddressTest

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

setUp

protected void setUp()
              throws Exception
Setup for a test

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception - on any error

testStrictConstructor

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

testValidateMethod

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

testValidateMethodCharset

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


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