Apache Commons logo Commons Email

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
169 0 0 0 100% 12.052

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.apache.commons.mail.resolver 10 0 0 0 100% 3.518
org.apache.commons.mail.util 9 0 0 0 100% 0.064
org.apache.commons.mail 150 0 0 0 100% 8.47

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.apache.commons.mail.resolver

Class Tests Errors Failures Skipped Success Rate Time
DataSourceUrlResolverTest 3 0 0 0 100% 2.577
DataSourceCompositeResolverTest 3 0 0 0 100% 0.941
DataSourceFileResolverTest 2 0 0 0 100% 0
DataSourceClassPathResolverTest 2 0 0 0 100% 0

org.apache.commons.mail.util

Class Tests Errors Failures Skipped Success Rate Time
MimeMessageParserTest 9 0 0 0 100% 0.064

org.apache.commons.mail

Class Tests Errors Failures Skipped Success Rate Time
SimpleEmailTest 3 0 0 0 100% 0.365
InvalidInternetAddressTest 3 0 0 0 100% 0
ImageHtmlEmailTest 25 0 0 0 100% 5.747
HtmlEmailTest 15 0 0 0 100% 1.076
EmailUtilsTest 1 0 0 0 100% 0
InvalidAddressTest 4 0 0 0 100% 0.019
SendWithAttachmentsTest 2 0 0 0 100% 0.063
EmailTest 71 0 0 0 100% 0.138
EmailAttachmentTest 5 0 0 0 100% 0.152
MultiPartEmailTest 11 0 0 0 100% 0.822
DefaultAuthenticatorTest 1 0 0 0 100% 0
EmailLiveTest 9 0 0 0 100% 0.088

Test Cases

[Summary] [Package List] [Test Cases]

SimpleEmailTest

testSend 0.345
testDefaultMimeCharset 0.02
testGetSetMsg 0

InvalidInternetAddressTest

testValidateMethod 0
testValidateMethodCharset 0
testStrictConstructor 0

DataSourceUrlResolverTest

testResolvingHttpLenient 2.112
testResolvingHttpNonLenient 0.463
testResolvingFilesLenient 0.002

DataSourceCompositeResolverTest

testResolvingFilesLenient 0.71
testResolvingFilesNonLenient 0.23
testExternalModification 0.001

DataSourceFileResolverTest

testResolvingFileLenient 0
testResolvingFileNonLenient 0

DataSourceClassPathResolverTest

testResolvingClassPathNonLenient 0
testResolvingClassPathLenient 0

ImageHtmlEmailTest

testSendEmptyHTML 0.093
testSendEmptyHTML2 0.018
testSendHtmlUrl 1.545
testRegex 0.019
testSendHTMLAbsoluteLocalFile 0.133
testSendHTMLClassPathFile 0.153
testSendHTMLAutoResolveFile 0.142
testSendHTMLAutoResolveMultipleFiles 0.112
testEmail127 0.798
testSendHtml 1.714
testSend 0.095
testGetSetMsg 0.028
testEmbedUrl 0.511
testGetSetTextMsg 0.011
testGetSetHtmlMsg 0.011
testEmbedFile 0.016
testEmbedUrlAndFile 0.015
testEmbedDataSource 0.014
testSend2 0.13
testSendWithDefaultCharset 0.041
testAddZipUrl 0.045
testCallingBuildMimeMessageBeforeSent 0.018
testSendWithPlainTextButNoHtmlContent 0.031
testEmbedFileWithCID 0.007
testHtmlMailMimeLayout 0.047

HtmlEmailTest

testSend 0.385
testGetSetMsg 0.022
testEmbedUrl 0.356
testGetSetTextMsg 0.005
testGetSetHtmlMsg 0.007
testEmbedFile 0.01
testEmbedUrlAndFile 0.01
testEmbedDataSource 0.011
testSend2 0.077
testSendWithDefaultCharset 0.037
testAddZipUrl 0.033
testCallingBuildMimeMessageBeforeSent 0.015
testSendWithPlainTextButNoHtmlContent 0.035
testEmbedFileWithCID 0.009
testHtmlMailMimeLayout 0.064

MimeMessageParserTest

testMultipartTextAttachmentOnly 0.004
testParseHtmlEmailWithAttachments 0.047
testMultipartTextAttachment 0.001
testParseHtmlEmailWithHtmlAttachment 0.002
testAttachmentOnly 0.001
testParseSimpleReplyEmail 0.002
testParseMultipartReport 0.002
testParseNoHeaderSeperatorWithOutOfMemory 0.004
testParseSimpleEmail 0.001

EmailUtilsTest

testUrlEncoding 0

InvalidAddressTest

testAddInvalidCc 0.014
testAddInvalidTo 0.002
testSetInvalidFrom 0
testAddInvalidBcc 0.003

SendWithAttachmentsTest

testSendWAttachments 0.039
testSendNoAttachments 0.024

EmailTest

testAddBccArray 0.001
testAddReplyTo2 0
testGetSetSession 0.002
testAddReplyTo 0.001
testDefaultCharsetCanBeOverriddenByContentType 0.004
testSetSmptPortNegative 0
testAddCcWithEncoding 0.001
testAddBcc2 0.001
testAddReplyToBadEncoding 0.03
testGetSetDebug 0.001
testSetCcEmpty 0
testSendFromNotSet 0.007
testAddHeaderNullValue 0
testSetHeaders 0
testSendBadAuthSet 0.007
testAddCc 0.001
testAddTo 0
testSetCc 0
testSetTo 0.001
testSetContentMimeMultipart 0
testSendDestinationNotSet 0.007
testSendBadHostName 0.007
testGetSetAuthentication 0.001
testFoldingHeaders 0.004
testAddToWithEncoding 0
testSetSmtpPortMinValue 0
testCorrectContentTypeForPNG 0.003
testAddHeaderNullName 0
testSetHeaderNullValue 0
testGetSetHostName 0
testSetContentObject 0
testAddBccBadEncoding 0.003
testGetSetAuthenticator 0
testAddToArray 0.001
testGetSetSmtpPort 0
testAddHeaderEmptyValue 0
testDefaultCharsetAppliesToTextContent 0.003
testSetContentNull 0
testSetFromBadEncoding 0.002
testToInternetAddressArray 0
testAddHeader 0.001
testSetSubject 0
testSetHeaderNullName 0
testAddHeaderEmptyName 0.001
testSetSmtpPortZero 0
testSetCcNull 0
testSetBccEmpty 0.001
testAddCcBadEncoding 0.002
testGetSetCharset 0
testSetContentEmptyMimeMultipart 0
testSetToEmpty 0.001
testAddBcc 0
testAddCc2 0
testAddTo2 0
testAddReplyToWithEncoding 0
testSetHeaderEmptyValue 0
testSetToNull 0
testSetFromWithEncoding 0
testGetSetSentDate 0.001
testSetHeaderEmptyName 0
testSetFrom 0
testSetBcc 0
testSendNoHostName 0.005
testAddCcArray 0
testDefaultCharsetIgnoredByNonTextContent 0.003
testSendCorrectSmtpPortContainedInException 0.032
testAddToBadEncoding 0.002
testSetBccNull 0
testAddBccWithEncoding 0
testSetPopBeforeSmtp 0.001
testSetFrom2 0

EmailAttachmentTest

testGetSetName 0
testGetSetPath 0
testGetSetDisposition 0
testGetSetURL 0.152
testGetSetDescription 0

MultiPartEmailTest

testSend 0.284
testAddPart 0.007
testAddPart2 0.007
testGetContainer 0.004
testInit 0.005
testGetSetSubType 0.005
testAttach 0.387
testAttach2 0.007
testAttach3 0.094
testAttachFileLocking 0.006
testSetMsg 0.016

DefaultAuthenticatorTest

testDefaultAuthenticatorConstructor 0

EmailLiveTest

testSimpleEmail 0
testMultiPartEmail 0.011
testImageHtmlEmailLocal 0.023
testPartialSend 0.003
testSendingEmailsInBatch 0.003
testCorrectCharacterEncoding 0.006
testHtmlMailMimeLayout 0.035
testFoldedHeaderValue 0.007
testImageHtmlEmailRemote 0