@PrepareForTest(value=MockHtmlEmailConcrete.class) public class HtmlEmailTest extends BaseEmailTestCase
BODY_END_PAD, BODY_START_PAD, fakeMailServer, strTestMailFrom, strTestMailServer, strTestMailTo, strTestPasswd, strTestURL, strTestUser, testCharsNotValid, testCharsValid| Constructor and Description |
|---|
HtmlEmailTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
void |
testAddZipUrl()
Create a HTML email containing an URL pointing to a ZIP file
to be downloaded.
|
void |
testCallingBuildMimeMessageBeforeSent()
According to EMAIL-95 calling buildMimeMessage() before calling send()
causes duplicate mime parts - now we throw an exception to catch the
problem
|
void |
testEmbedDataSource() |
void |
testEmbedFile() |
void |
testEmbedFileWithCID()
Test that the specified Content-ID is used when embedding a File
object in an HtmlEmail.
|
void |
testEmbedUrl() |
void |
testEmbedUrlAndFile() |
void |
testGetSetHtmlMsg() |
void |
testGetSetMsg() |
void |
testGetSetTextMsg() |
void |
testHtmlMailMimeLayout() |
void |
testSend() |
void |
testSend2() |
void |
testSendWithPlainTextButNoHtmlContent()
EMAIL-73 - check that providing a plain text content using setMsg()
creates a plain content and HTML content using
|
createInvalidURL, getMailServer, getMailServerPort, getMessageAsString, isMailServerStopped, saveEmailToFile, tearDown, validateSend, validateSend, validateSendassertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringpublic HtmlEmailTest(String name)
name - nameprotected void setUp() throws Exception
setUp in class junit.framework.TestCaseExceptionpublic void testGetSetTextMsg() throws EmailException
EmailExceptionpublic void testGetSetHtmlMsg() throws EmailException
EmailExceptionpublic void testGetSetMsg() throws EmailException
EmailExceptionpublic void testEmbedUrl() throws Exception
Exceptionpublic void testEmbedFile() throws Exception
Exceptionpublic void testEmbedUrlAndFile() throws Exception
Exceptionpublic void testEmbedDataSource() throws Exception
Exceptionpublic void testSend() throws EmailException, IOException
EmailException - when bad addresses and attachments are usedIOException - if creating a temp file, URL or sending failspublic void testAddZipUrl() throws Exception
Exceptionpublic void testCallingBuildMimeMessageBeforeSent() throws Exception
Exceptionpublic void testSendWithPlainTextButNoHtmlContent() throws EmailException, IOException
tags.
EmailExceptionIOExceptionpublic void testEmbedFileWithCID() throws Exception
Exceptionpublic void testHtmlMailMimeLayout() throws Exception
ExceptionCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.