org.apache.commons.mail
Class SendWithAttachmentsTest

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

public class SendWithAttachmentsTest
extends BaseEmailTestCase

JUnit test case verifying bugzilla issue 30973 is fixed.

Since:
1.0
Version:
$Id: SendWithAttachmentsTest.java 512628 2007-02-28 06:56:28Z dion $
Author:
Corey Scott

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
SendWithAttachmentsTest(String name)
           
 
Method Summary
protected  void setUp()
           
 void testSendNoAttachments()
           
 void testSendWAttachments()
           
 
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

SendWithAttachmentsTest

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

setUp

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

testSendNoAttachments

public void testSendNoAttachments()
                           throws org.apache.commons.mail.EmailException,
                                  IOException
Throws:
EmailException - on an email error
IOException - when sending fails, or a bad URL is used

testSendWAttachments

public void testSendWAttachments()
                          throws org.apache.commons.mail.EmailException,
                                 IOException
Throws:
EmailException - on an email error
IOException - when sending fails, or a bad URL is used


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