public class EmailLiveTest extends BaseEmailTestCase
BODY_END_PAD, BODY_START_PAD, fakeMailServer, strTestMailFrom, strTestMailServer, strTestMailTo, strTestPasswd, strTestURL, strTestUser, testCharsNotValid, testCharsValid| Constructor and Description |
|---|
EmailLiveTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getFromUrl(URL url) |
protected Email |
send(Email email) |
protected void |
setUp() |
void |
testCorrectCharacterEncoding()
This test checks the correct character encoding when sending
non-ASCII content using SimpleEmail.
|
void |
testFoldedHeaderValue()
A sanity check that a header folding works correctly.
|
void |
testHtmlMailMimeLayout()
This test checks the various options of building a HTML email.
|
void |
testImageHtmlEmailLocal()
Test sending a image HTML mail bases on a local HTML page and local image.
|
void |
testImageHtmlEmailRemote()
Test sending a image HTML mail based on a real world website.
|
void |
testMultiPartEmail()
A sanity check that a simple email also works in reality.
|
void |
testSendingEmailsInBatch()
Testing if we are able to send a few emails in a batch, i.e.
|
void |
testSimpleEmail()
A sanity check that a simple email also works in reality.
|
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 EmailLiveTest(String name)
name - nameprotected void setUp() throws Exception
setUp in class junit.framework.TestCaseExceptionprotected Email send(Email email) throws EmailException
EmailExceptionprotected String getFromUrl(URL url) throws Exception
Exceptionpublic void testSimpleEmail() throws Exception
Exception - the test failedpublic void testFoldedHeaderValue() throws Exception
Exception - the test failedpublic void testMultiPartEmail() throws Exception
Exception - the test failedpublic void testHtmlMailMimeLayout() throws Exception
Exception - the test failedpublic void testCorrectCharacterEncoding() throws Exception
Exception - the test failedpublic void testImageHtmlEmailLocal() throws Exception
Exception - the test failedpublic void testImageHtmlEmailRemote() throws Exception
Exception - the test failedpublic void testSendingEmailsInBatch() throws Exception
Transport instance.
Use a single instance speeds up processing since the
authorization is only done once.
https://issues.apache.org/jira/browse/EMAIL-72Exception - the test failed.Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.