|
||||||||||
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.HtmlEmailTest
public class HtmlEmailTest
JUnit test case for HtmlEmail 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 | |
---|---|
HtmlEmailTest(String name)
|
Method Summary | |
---|---|
protected void |
setUp()
|
void |
testEmbedDataSource()
|
void |
testEmbedFile()
|
void |
testEmbedUrl()
|
void |
testEmbedUrlAndFile()
|
void |
testGetSetHtmlMsg()
|
void |
testGetSetMsg()
|
void |
testGetSetTextMsg()
|
void |
testSend()
|
void |
testSend2()
|
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 HtmlEmailTest(String name)
name
- nameMethod Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void testGetSetTextMsg() throws org.apache.commons.mail.EmailException
EmailException
public void testGetSetHtmlMsg() throws org.apache.commons.mail.EmailException
EmailException
- if setting the message failspublic void testGetSetMsg() throws org.apache.commons.mail.EmailException
EmailException
public void testEmbedUrl() throws Exception
Exception
- Exceptionpublic void testEmbedFile() throws Exception
Exception
public void testEmbedUrlAndFile() throws Exception
Exception
public void testEmbedDataSource() throws Exception
Exception
public void testSend() throws org.apache.commons.mail.EmailException, IOException
EmailException
- when bad addresses and attachments are used
IOException
- if creating a temp file, URL or sending failspublic void testSend2() throws Exception
Exception
- Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |