Apache Commons logo Commons Email

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
173 0 0 1 99.422% 16.47

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% 5.531
org.apache.commons.mail.util 13 0 0 0 100% 0.147
org.apache.commons.mail 150 0 0 1 99.333% 10.792

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% 3.94
DataSourceCompositeResolverTest 3 0 0 0 100% 1.547
DataSourceFileResolverTest 2 0 0 0 100% 0.034
DataSourceClassPathResolverTest 2 0 0 0 100% 0.01

org.apache.commons.mail.util

Class Tests Errors Failures Skipped Success Rate Time
MimeMessageParserTest 13 0 0 0 100% 0.147

org.apache.commons.mail

Class Tests Errors Failures Skipped Success Rate Time
SendWithAttachmentsTest 2 0 0 0 100% 0.051
InvalidInternetAddressTest 3 0 0 0 100% 0
InvalidAddressTest 4 0 0 0 100% 0.004
EmailTest 71 0 0 0 100% 0.26
DefaultAuthenticatorTest 1 0 0 0 100% 0
HtmlEmailTest 15 0 0 0 100% 0.736
SimpleEmailTest 3 0 0 1 66.667% 0.024
EmailLiveTest 9 0 0 0 100% 0.112
EmailUtilsTest 1 0 0 0 100% 0
MultiPartEmailTest 11 0 0 0 100% 0.489
EmailAttachmentTest 5 0 0 0 100% 0.078
ImageHtmlEmailTest 25 0 0 0 100% 9.038

Test Cases

[Summary] [Package List] [Test Cases]

SendWithAttachmentsTest

testSendWAttachments 0.032
testSendNoAttachments 0.019

InvalidInternetAddressTest

testValidateMethod 0
testValidateMethodCharset 0
testStrictConstructor 0

InvalidAddressTest

testAddInvalidCc 0.001
testAddInvalidTo 0.001
testSetInvalidFrom 0.001
testAddInvalidBcc 0.001

EmailTest

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

MimeMessageParserTest

testMultipartTextAttachmentOnly 0.036
testParseHtmlEmailWithAttachments 0.065
testParseCreatedHtmlEmailWithMixedContent 0.005
testMultipartTextAttachment 0.002
testParseHtmlEmailWithAttachmentAndEncodedFilename 0.002
testParseHtmlEmailWithHtmlAttachment 0.008
testAttachmentOnly 0.012
testParseSimpleReplyEmail 0.005
testParseMultipartReport 0.005
testParseCreatedHtmlEmailWithNoContent 0.001
testParseNoHeaderSeperatorWithOutOfMemory 0.002
testParseSimpleEmail 0.003
testParseCreatedHtmlEmailWithTextContent 0.001

DataSourceUrlResolverTest

testResolvingHttpLenient 3.219
testResolvingHttpNonLenient 0.718
testResolvingFilesLenient 0.003

DataSourceCompositeResolverTest

testResolvingFilesLenient 1.192
testResolvingFilesNonLenient 0.355
testExternalModification 0

DataSourceFileResolverTest

testResolvingFileLenient 0.034
testResolvingFileNonLenient 0

DefaultAuthenticatorTest

testDefaultAuthenticatorConstructor 0

HtmlEmailTest

testGetSetTextMsg 0.039
testGetSetHtmlMsg 0.004
testGetSetMsg 0.014
testEmbedUrl 0.248
testEmbedFile 0.008
testEmbedUrlAndFile 0.007
testEmbedDataSource 0.008
testSend 0.179
testSend2 0.094
testSendWithDefaultCharset 0.029
testAddZipUrl 0.022
testCallingBuildMimeMessageBeforeSent 0.01
testSendWithPlainTextButNoHtmlContent 0.027
testEmbedFileWithCID 0.007
testHtmlMailMimeLayout 0.04

SimpleEmailTest

testSend 0.024
testDefaultMimeCharset 0
skipped
testGetSetMsg 0

EmailLiveTest

testSimpleEmail 0.003
testMultiPartEmail 0.008
testImageHtmlEmailLocal 0.038
testPartialSend 0.007
testSendingEmailsInBatch 0.003
testCorrectCharacterEncoding 0.008
testHtmlMailMimeLayout 0.04
testFoldedHeaderValue 0.003
testImageHtmlEmailRemote 0.002

EmailUtilsTest

testUrlEncoding 0

MultiPartEmailTest

testAddPart2 0.062
testGetContainer 0.003
testInit 0.005
testGetSetSubType 0.003
testSend 0.142
testSetMsg 0.01
testAttach 0.224
testAttach2 0.005
testAttach3 0.028
testAttachFileLocking 0.004
testAddPart 0.003

EmailAttachmentTest

testGetSetName 0.004
testGetSetPath 0
testGetSetDisposition 0
testGetSetURL 0.074
testGetSetDescription 0

DataSourceClassPathResolverTest

testResolvingClassPathNonLenient 0
testResolvingClassPathLenient 0.01

ImageHtmlEmailTest

testSendHtml 4.482
testSendEmptyHTML 0.007
testSendEmptyHTML2 0.009
testSendHtmlUrl 1.748
testSendHTMLAbsoluteLocalFile 0.09
testSendHTMLClassPathFile 0.08
testSendHTMLAutoResolveFile 0.123
testSendHTMLAutoResolveMultipleFiles 0.125
testRegex 0.009
testEmail127 1.608
testGetSetTextMsg 0.007
testGetSetHtmlMsg 0.005
testGetSetMsg 0.019
testEmbedUrl 0.301
testEmbedFile 0.015
testEmbedUrlAndFile 0.011
testEmbedDataSource 0.011
testSend 0.094
testSend2 0.078
testSendWithDefaultCharset 0.032
testAddZipUrl 0.039
testCallingBuildMimeMessageBeforeSent 0.012
testSendWithPlainTextButNoHtmlContent 0.042
testEmbedFileWithCID 0.007
testHtmlMailMimeLayout 0.084

Failure Details

[Summary] [Package List] [Test Cases]


testDefaultMimeCharset
skipped: skipped