Apache Commons logo Commons Email

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
177 0 0 3 98.305% 8.856

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% 1.083
org.apache.commons.mail.util 14 0 0 0 100% 0.227
org.apache.commons.mail 153 0 0 3 98.039% 7.546

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% 0.542
DataSourceCompositeResolverTest 3 0 0 0 100% 0.509
DataSourceFileResolverTest 2 0 0 0 100% 0.032
DataSourceClassPathResolverTest 2 0 0 0 100% 0

org.apache.commons.mail.util

Class Tests Errors Failures Skipped Success Rate Time
MimeMessageParserTest 14 0 0 0 100% 0.227

org.apache.commons.mail

Class Tests Errors Failures Skipped Success Rate Time
SendWithAttachmentsTest 2 0 0 0 100% 0.141
InvalidInternetAddressTest 3 0 0 0 100% 0.002
InvalidAddressTest 4 0 0 0 100% 0.002
EmailTest 73 0 0 0 100% 0.147
DefaultAuthenticatorTest 1 0 0 0 100% 0
HtmlEmailTest 15 0 0 1 93.333% 1.08
SimpleEmailTest 3 0 0 1 66.667% 0.034
EmailLiveTest 9 0 0 0 100% 0.117
EmailUtilsTest 1 0 0 0 100% 0
MultiPartEmailTest 11 0 0 0 100% 0.977
EmailAttachmentTest 5 0 0 0 100% 0.057
ImageHtmlEmailTest 26 0 0 1 96.154% 4.989

Test Cases

[Summary] [Package List] [Test Cases]

SendWithAttachmentsTest

testSendWAttachments 0.09
testSendNoAttachments 0.051

InvalidInternetAddressTest

testValidateMethod 0
testValidateMethodCharset 0.001
testStrictConstructor 0.001

InvalidAddressTest

testAddInvalidCc 0.001
testAddInvalidTo 0
testSetInvalidFrom 0
testAddInvalidBcc 0.001

EmailTest

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

MimeMessageParserTest

testMultipartTextAttachmentOnly 0.046
testParseHtmlEmailWithAttachments 0.096
testParseInlineCID 0.029
testParseCreatedHtmlEmailWithMixedContent 0.006
testMultipartTextAttachment 0.001
testParseHtmlEmailWithAttachmentAndEncodedFilename 0.018
testParseHtmlEmailWithHtmlAttachment 0.002
testAttachmentOnly 0.005
testParseSimpleReplyEmail 0.003
testParseMultipartReport 0.014
testParseCreatedHtmlEmailWithNoContent 0
testParseNoHeaderSeperatorWithOutOfMemory 0.003
testParseSimpleEmail 0.003
testParseCreatedHtmlEmailWithTextContent 0.001

DataSourceUrlResolverTest

testResolvingHttpLenient 0.426
testResolvingHttpNonLenient 0.115
testResolvingFilesLenient 0.001

DataSourceCompositeResolverTest

testResolvingFilesLenient 0.452
testResolvingFilesNonLenient 0.057
testExternalModification 0

DataSourceFileResolverTest

testResolvingFileLenient 0.032
testResolvingFileNonLenient 0

DefaultAuthenticatorTest

testDefaultAuthenticatorConstructor 0

HtmlEmailTest

testSendWithDefaultCharset 0
skipped
testHtmlMailMimeLayout 0.22
testGetSetTextMsg 0.005
testGetSetHtmlMsg 0.004
testGetSetMsg 0.014
testEmbedUrl 0.381
testEmbedFile 0.009
testEmbedUrlAndFile 0.007
testEmbedDataSource 0.008
testSend 0.246
testSend2 0.106
testAddZipUrl 0.024
testCallingBuildMimeMessageBeforeSent 0.024
testSendWithPlainTextButNoHtmlContent 0.027
testEmbedFileWithCID 0.005

SimpleEmailTest

testSend 0.034
testDefaultMimeCharset 0
skipped
testGetSetMsg 0

EmailLiveTest

testSimpleEmail 0.013
testMultiPartEmail 0.027
testImageHtmlEmailLocal 0.042
testPartialSend 0.002
testSendingEmailsInBatch 0.003
testCorrectCharacterEncoding 0.005
testHtmlMailMimeLayout 0.022
testFoldedHeaderValue 0.003
testImageHtmlEmailRemote 0

EmailUtilsTest

testUrlEncoding 0

MultiPartEmailTest

testAttach 0.641
testAttach2 0.006
testAttach3 0.044
testAttachFileLocking 0.004
testAddPart 0.004
testAddPart2 0.004
testSetMsg 0.011
testSend 0.252
testGetContainer 0.002
testInit 0.004
testGetSetSubType 0.005

EmailAttachmentTest

testGetSetName 0.002
testGetSetPath 0.001
testGetSetDisposition 0
testGetSetURL 0.054
testGetSetDescription 0

DataSourceClassPathResolverTest

testResolvingClassPathNonLenient 0
testResolvingClassPathLenient 0

ImageHtmlEmailTest

testSendEmptyHTML 0.159
testSendEmptyHTML2 0.019
testSendHtmlUrl 1.103
testSendHTMLAbsoluteLocalFile 0.205
testSendHTMLClassPathFile 0.147
testSendClassPathFileWithNullName 0.098
testSendHTMLAutoResolveFile 0.203
testSendHTMLAutoResolveMultipleFiles 0.166
testRegex 0.014
testEmail127 0.288
testSendHtml 1.365
testSendWithDefaultCharset 0
skipped
testHtmlMailMimeLayout 0.095
testGetSetTextMsg 0.006
testGetSetHtmlMsg 0.007
testGetSetMsg 0.047
testEmbedUrl 0.787
testEmbedFile 0.009
testEmbedUrlAndFile 0.008
testEmbedDataSource 0.009
testSend 0.066
testSend2 0.061
testAddZipUrl 0.059
testCallingBuildMimeMessageBeforeSent 0.024
testSendWithPlainTextButNoHtmlContent 0.037
testEmbedFileWithCID 0.007

Failure Details

[Summary] [Package List] [Test Cases]


testSendWithDefaultCharset
skipped: skipped
testDefaultMimeCharset
skipped: skipped
testSendWithDefaultCharset
skipped: skipped