public class EmailTest extends BaseEmailTestCase
| Modifier and Type | Field and Description |
|---|---|
static String[] |
ARR_VALID_EMAILS
valid email addresses
|
BODY_END_PAD, BODY_START_PAD, fakeMailServer, strTestMailFrom, strTestMailServer, strTestMailTo, strTestPasswd, strTestURL, strTestUser, testCharsNotValid, testCharsValidcreateInvalidURL, 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 static final String[] ARR_VALID_EMAILS
protected void setUp() throws Exception
setUp in class junit.framework.TestCaseExceptionpublic void testGetSetDebug()
public void testGetSetSession() throws Exception
Exception - Exceptionpublic void testGetSetAuthentication()
public void testGetSetAuthenticator()
public void testGetSetCharset()
public void testSetContentMimeMultipart()
public void testSetContentObject()
public void testGetSetHostName()
public void testGetSetSmtpPort()
public void testSetFrom() throws Exception
Exception - Exceptionpublic void testSetFromWithEncoding() throws Exception
Exception - Exceptionpublic void testSetFrom2() throws Exception
Exception - Exceptionpublic void testAddTo() throws EmailException, AddressException, UnsupportedEncodingException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressesAddressExceptionpublic void testAddToArray() throws EmailException, AddressException, UnsupportedEncodingException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressesAddressExceptionpublic void testAddToWithEncoding() throws UnsupportedEncodingException, AddressException, EmailException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressesAddressExceptionpublic void testAddTo2() throws UnsupportedEncodingException, AddressException, EmailException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressesAddressExceptionpublic void testSetTo() throws UnsupportedEncodingException, EmailException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressespublic void testAddCc() throws UnsupportedEncodingException, AddressException, EmailException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressesAddressExceptionpublic void testAddCcArray() throws UnsupportedEncodingException, AddressException, EmailException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressesAddressExceptionpublic void testAddCcWithEncoding() throws UnsupportedEncodingException, AddressException, EmailException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressesAddressExceptionpublic void testAddCc2() throws UnsupportedEncodingException, AddressException, EmailException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressesAddressExceptionpublic void testSetCc() throws EmailException, AddressException
EmailException - when there are problems adding an addressAddressExceptionpublic void testAddBcc() throws UnsupportedEncodingException, AddressException, EmailException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressesAddressExceptionpublic void testAddBccArray() throws UnsupportedEncodingException, AddressException, EmailException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressesAddressExceptionpublic void testAddBccWithEncoding() throws UnsupportedEncodingException, AddressException, EmailException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressesAddressExceptionpublic void testAddBcc2() throws UnsupportedEncodingException, AddressException, EmailException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressesAddressExceptionpublic void testSetBcc() throws UnsupportedEncodingException, EmailException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressespublic void testAddReplyTo() throws UnsupportedEncodingException, AddressException, EmailException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressesAddressExceptionpublic void testAddReplyToWithEncoding() throws UnsupportedEncodingException, AddressException, EmailException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressesAddressExceptionpublic void testAddReplyTo2() throws UnsupportedEncodingException, AddressException, EmailException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressesAddressExceptionpublic void testAddHeader()
public void testAddHeaderEx()
public void testSetHeaders()
public void testFoldingHeaders() throws Exception
Exceptionpublic void testSetHeadersEx()
public void testSetSubject()
public void testSendEx()
public void testGetSetSentDate()
public void testToInternetAddressArray() throws EmailException, UnsupportedEncodingException
EmailException - when there are problems adding an addressUnsupportedEncodingException - on bad email addressespublic void testSetPopBeforeSmtp()
public void testDefaultCharsetAppliesToTextContent() throws Exception
Exception - on any errorpublic void testDefaultCharsetCanBeOverriddenByContentType() throws Exception
Exception - on any errorpublic void testDefaultCharsetIgnoredByNonTextContent() throws Exception
Exception - on any errorpublic void testCorrectContentTypeForPNG() throws Exception
ExceptionCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.