Apache Commons logo Commons Email

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
200 0 0 3 98.5% 6.125 s

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.mail2.javax 167 0 0 3 98.2% 4.821 s
org.apache.commons.mail2.javax.resolver 13 0 0 0 100% 1.209 s
org.apache.commons.mail2.javax.util 20 0 0 0 100% 0.095 s

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

org.apache.commons.mail2.javax

- Class Tests Errors Failures Skipped Success Rate Time
InvalidAddressTest 4 0 0 0 100% 0.026 s
ImageHtmlEmailTest 26 0 0 1 96.2% 2.805 s
SimpleEmailTest 3 0 0 1 66.7% 0.046 s
InputStreamDataSourceTest 5 0 0 0 100% 0.018 s
MultiPartEmailTest 12 0 0 0 100% 0.275 s
EmailTest 81 0 0 0 100% 0.474 s
HtmlEmailTest 15 0 0 1 93.3% 0.139 s
EmailAttachmentTest 5 0 0 0 100% 0.041 s
InvalidInternetAddressTest 3 0 0 0 100% 0.128 s
DefaultAuthenticatorTest 1 0 0 0 100% 0.007 s
EmailLiveTest 10 0 0 0 100% 0.236 s
SendWithAttachmentsTest 2 0 0 0 100% 0.626 s

org.apache.commons.mail2.javax.resolver

- Class Tests Errors Failures Skipped Success Rate Time
DataSourceClassPathResolverTest 2 0 0 0 100% 0.010 s
DataSourceFileResolverTest 2 0 0 0 100% 0.008 s
DataSourcePathResolverTest 2 0 0 0 100% 0.012 s
DataSourceUrlResolverTest 4 0 0 0 100% 0.322 s
DataSourceCompositeResolverTest 3 0 0 0 100% 0.857 s

org.apache.commons.mail2.javax.util

- Class Tests Errors Failures Skipped Success Rate Time
IDNEmailAddressConverterTest 6 0 0 0 100% 0.016 s
MimeMessageParserTest 14 0 0 0 100% 0.079 s

Test Cases

[Summary] [Package List] [Test Cases]

IDNEmailAddressConverterTest

testNonIDNEmailAddressToAsciiConversion 0 s
testMultipleIDNEmailAddressToAsciiConversion 0 s
testInternetAddressToAsciiConversion 0.003 s
testRoundTripConversionOfIDNEmailAddress 0.002 s
testConvertInvalidEmailAddressToAscii 0 s
testIDNEmailAddressToAsciiConversion 0.001 s

InvalidAddressTest

testAddInvalidCc 0.006 s
testAddInvalidTo 0.005 s
testSetInvalidFrom 0.006 s
testAddInvalidBcc 0.004 s

ImageHtmlEmailTest

testCallingBuildMimeMessageBeforeSent 0.007 s
testSend2 0.061 s
testEmbedFileWithCID 0.006 s
testSend 0.035 s
testGetSetTextMsg 0.002 s
testEmbedFile 0.003 s
testEmbedDataSource 0.003 s
testSendWithPlainTextButNoHtmlContent 0.014 s
testHtmlMailMimeLayout 0.025 s
testAddZipUrl 0.007 s
testEmbedUrlAndFile 0.002 s
testSendWithDefaultCharset 0 s
- public void org.apache.commons.mail2.javax.HtmlEmailTest.testSendWithDefaultCharset() throws java.lang.Exception is @Disabled -
testGetSetMsg 0.002 s
testEmbedUrl 1.517 s
testGetSetHtmlMsg 0.004 s
testSendHTMLAutoResolveMultipleFiles 0.048 s
testSendClassPathFileWithNullName 0.057 s
testRegex 0.008 s
testSendHTMLClassPathFile 0.041 s
testSendEmptyHTML2 0.023 s
testSendHtmlUrl 0.302 s
testSendHTMLAbsoluteLocalFile 0.057 s
testSendEmptyHTML 0.005 s
testSendHTMLAutoResolveFile 0.031 s
testEmail127 0.241 s
testSendHtml 0.254 s

DataSourceClassPathResolverTest

testResolvingClassPathNonLenient 0.004 s
testResolvingClassPathLenient 0.004 s

SimpleEmailTest

testSend 0.025 s
testDefaultMimeCharset 0 s
- public void org.apache.commons.mail2.javax.SimpleEmailTest.testDefaultMimeCharset() throws org.apache.commons.mail2.core.EmailException,java.io.IOException is @Disabled -
testGetSetMsg 0.001 s

InputStreamDataSourceTest

testGetName 0.001 s
testGetOutputStream 0.002 s
testSetName 0 s
testGetContentType 0 s
testGetInputStream 0.005 s

MultiPartEmailTest

testGetSetSubType 0.008 s
testAddPart 0.009 s
testInit 0.012 s
testSend 0.068 s
testAttach2 0.002 s
testAttach3 0.004 s
testAttachFileLocking 0.002 s
testAddPart2 0.001 s
testGetContainer 0.002 s
testAttachFile 0.059 s
testAttachPath 0.077 s
testSetMsg 0.002 s

EmailTest

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

DataSourceFileResolverTest

testResolveLenient 0.004 s
testResolveStrict 0.001 s

DataSourcePathResolverTest

testResolveLenient 0.003 s
testResolveStrict 0.005 s

HtmlEmailTest

testCallingBuildMimeMessageBeforeSent 0.015 s
testSend2 0.037 s
testEmbedFileWithCID 0.002 s
testSend 0.022 s
testGetSetTextMsg 0.001 s
testEmbedFile 0.002 s
testEmbedDataSource 0.004 s
testSendWithPlainTextButNoHtmlContent 0.014 s
testHtmlMailMimeLayout 0.012 s
testAddZipUrl 0.008 s
testEmbedUrlAndFile 0.002 s
testSendWithDefaultCharset 0 s
- public void org.apache.commons.mail2.javax.HtmlEmailTest.testSendWithDefaultCharset() throws java.lang.Exception is @Disabled -
testGetSetMsg 0.002 s
testEmbedUrl 0.004 s
testGetSetHtmlMsg 0.001 s

MimeMessageParserTest

testMultipartTextAttachmentOnly 0.012 s
testParseHtmlEmailWithAttachments 0.024 s
testParseInlineCID 0.006 s
testParseCreatedHtmlEmailWithMixedContent 0.002 s
testMultipartTextAttachment 0.002 s
testParseHtmlEmailWithAttachmentAndEncodedFileName 0.002 s
testParseHtmlEmailWithHtmlAttachment 0.002 s
testAttachmentOnly 0.002 s
testParseSimpleReplyEmail 0.003 s
testParseMultipartReport 0.003 s
testParseCreatedHtmlEmailWithNoContent 0.001 s
testParseNoHeaderSeperatorWithOutOfMemory 0.001 s
testParseSimpleEmail 0.002 s
testParseCreatedHtmlEmailWithTextContent 0.002 s

EmailAttachmentTest

testGetSetName 0.004 s
testGetSetPath 0.002 s
testGetSetDisposition 0.002 s
testGetSetURL 0.006 s
testGetSetDescription 0.005 s

DataSourceUrlResolverTest

testResolvingHttpLenient 0.314 s
testResolvingHttpNonLenient 0.002 s
testResolvingFilesLenient 0.002 s
testResolvingHttpLenientHost 0.001 s

InvalidInternetAddressTest

testValidateMethod 0.039 s
testValidateMethodCharset 0.014 s
testStrictConstructor 0.025 s

DefaultAuthenticatorTest

testDefaultAuthenticatorConstructor 0.001 s

DataSourceCompositeResolverTest

testResolvingFilesLenient 0.838 s
testResolvingFilesNonLenient 0.008 s
testExternalModification 0.001 s

EmailLiveTest

testSimpleEmail 0.010 s
testImageHtmlEmailLocal 0.083 s
testPartialSend 0.011 s
testSendingEmailsInBatch 0.008 s
testMultiPartEmailFile 0.024 s
testMultiPartEmailPath 0.017 s
testCorrectCharacterEncoding 0.024 s
testHtmlMailMimeLayout 0.033 s
testFoldedHeaderValue 0.005 s
testImageHtmlEmailRemote 0.001 s

SendWithAttachmentsTest

testSendWAttachments 0.561 s
testSendNoAttachments 0.022 s

Failure Details

[Summary] [Package List] [Test Cases]


testSendWithDefaultCharset
- skipped: public void org.apache.commons.mail2.javax.HtmlEmailTest.testSendWithDefaultCharset() throws java.lang.Exception is @Disabled
testDefaultMimeCharset
- skipped: public void org.apache.commons.mail2.javax.SimpleEmailTest.testDefaultMimeCharset() throws org.apache.commons.mail2.core.EmailException,java.io.IOException is @Disabled
testSendWithDefaultCharset
- skipped: public void org.apache.commons.mail2.javax.HtmlEmailTest.testSendWithDefaultCharset() throws java.lang.Exception is @Disabled