|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.mail.BaseEmailTestCase
org.apache.commons.mail.MultiPartEmailTest
public class MultiPartEmailTest
JUnit test case for MultiPartEmail Class
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 | |
---|---|
MultiPartEmailTest(String name)
|
Method Summary | |
---|---|
protected void |
setUp()
|
void |
testAddPart()
|
void |
testAddPart2()
|
void |
testAttach()
|
void |
testAttach2()
|
void |
testAttach3()
|
void |
testGetContainer()
|
void |
testGetSetSubType()
test get/set sub type |
void |
testInit()
init called twice should fail |
void |
testSend()
|
void |
testSetMsg()
|
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 |
---|
public MultiPartEmailTest(String name)
name
- nameMethod Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void testSetMsg() throws org.apache.commons.mail.EmailException
EmailException
public void testSend() throws org.apache.commons.mail.EmailException, IOException
EmailException
- when a bad address or attachment is used
IOException
- when sending failspublic void testAttach() throws MalformedURLException, org.apache.commons.mail.EmailException
MalformedURLException
- when a bad attachment URL is used
EmailException
- when a bad address or attachment is usedpublic void testAttach2() throws MalformedURLException, org.apache.commons.mail.EmailException
MalformedURLException
- when a bad attachment URL is used
EmailException
- when a bad address or attachment is usedpublic void testAttach3() throws MalformedURLException, org.apache.commons.mail.EmailException
MalformedURLException
- when a bad attachment URL is used
EmailException
- when a bad address or attachment is usedpublic void testAddPart() throws Exception
Exception
- Exceptionpublic void testAddPart2() throws Exception
Exception
- Exceptionpublic void testGetContainer()
public void testInit()
public void testGetSetSubType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |