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% 5.657 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.jakarta 167 0 0 3 98.2% 4.308 s
org.apache.commons.mail2.jakarta.resolver 13 0 0 0 100% 1.278 s
org.apache.commons.mail2.jakarta.util 20 0 0 0 100% 0.071 s

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

org.apache.commons.mail2.jakarta

- Class Tests Errors Failures Skipped Success Rate Time
DefaultAuthenticatorTest 1 0 0 0 100% 0.001 s
EmailLiveTest 10 0 0 0 100% 0.112 s
HtmlEmailTest 15 0 0 1 93.3% 0.136 s
InvalidInternetAddressTest 3 0 0 0 100% 0.014 s
EmailAttachmentTest 5 0 0 0 100% 0.215 s
SendWithAttachmentsTest 2 0 0 0 100% 0.432 s
InputStreamDataSourceTest 5 0 0 0 100% 0.016 s
MultiPartEmailTest 12 0 0 0 100% 0.058 s
ImageHtmlEmailTest 26 0 0 1 96.2% 2.925 s
InvalidAddressTest 4 0 0 0 100% 0.040 s
EmailTest 81 0 0 0 100% 0.341 s
SimpleEmailTest 3 0 0 1 66.7% 0.018 s

org.apache.commons.mail2.jakarta.resolver

- Class Tests Errors Failures Skipped Success Rate Time
DataSourceClassPathResolverTest 2 0 0 0 100% 0.018 s
DataSourceFileResolverTest 2 0 0 0 100% 0.008 s
DataSourcePathResolverTest 2 0 0 0 100% 0.006 s
DataSourceUrlResolverTest 4 0 0 0 100% 0.659 s
DataSourceCompositeResolverTest 3 0 0 0 100% 0.587 s

org.apache.commons.mail2.jakarta.util

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

Test Cases

[Summary] [Package List] [Test Cases]

DataSourceClassPathResolverTest

testResolvingClassPathNonLenient 0.002 s
testResolvingClassPathLenient 0.013 s

DefaultAuthenticatorTest

testDefaultAuthenticatorConstructor 0 s

EmailLiveTest

testSimpleEmail 0.005 s
testImageHtmlEmailLocal 0.041 s
testPartialSend 0.004 s
testSendingEmailsInBatch 0.004 s
testMultiPartEmailFile 0.008 s
testMultiPartEmailPath 0.008 s
testCorrectCharacterEncoding 0.009 s
testHtmlMailMimeLayout 0.026 s
testFoldedHeaderValue 0.004 s
testImageHtmlEmailRemote 0.001 s

HtmlEmailTest

testCallingBuildMimeMessageBeforeSent 0.009 s
testSend2 0.026 s
testEmbedFileWithCID 0.002 s
testSend 0.024 s
testGetSetTextMsg 0.002 s
testEmbedFile 0.002 s
testEmbedDataSource 0.002 s
testSendWithPlainTextButNoHtmlContent 0.010 s
testHtmlMailMimeLayout 0.025 s
testAddZipUrl 0.013 s
testEmbedUrlAndFile 0.002 s
testSendWithDefaultCharset 0 s
- public void org.apache.commons.mail2.jakarta.HtmlEmailTest.testSendWithDefaultCharset() throws java.lang.Exception is @Disabled -
testGetSetMsg 0.002 s
testEmbedUrl 0.004 s
testGetSetHtmlMsg 0.001 s

DataSourceFileResolverTest

testResolveLenient 0.003 s
testResolveStrict 0.002 s

InvalidInternetAddressTest

testValidateMethod 0.005 s
testValidateMethodCharset 0.002 s
testStrictConstructor 0.004 s

EmailAttachmentTest

testGetSetName 0.002 s
testGetSetPath 0.003 s
testGetSetDisposition 0.002 s
testGetSetURL 0.204 s
testGetSetDescription 0.001 s

SendWithAttachmentsTest

testSendWAttachments 0.370 s
testSendNoAttachments 0.024 s

DataSourcePathResolverTest

testResolveLenient 0.002 s
testResolveStrict 0.002 s

InputStreamDataSourceTest

testGetName 0.001 s
testGetOutputStream 0.002 s
testSetName 0.001 s
testGetContentType 0.001 s
testGetInputStream 0.008 s

MimeMessageParserTest

testMultipartTextAttachmentOnly 0.011 s
testParseHtmlEmailWithAttachments 0.010 s
testParseInlineCID 0.004 s
testParseCreatedHtmlEmailWithMixedContent 0.001 s
testMultipartTextAttachment 0.003 s
testParseHtmlEmailWithAttachmentAndEncodedFileName 0.003 s
testParseHtmlEmailWithHtmlAttachment 0.002 s
testAttachmentOnly 0.001 s
testParseSimpleReplyEmail 0.004 s
testParseMultipartReport 0.005 s
testParseCreatedHtmlEmailWithNoContent 0.002 s
testParseNoHeaderSeperatorWithOutOfMemory 0.002 s
testParseSimpleEmail 0.003 s
testParseCreatedHtmlEmailWithTextContent 0.001 s

MultiPartEmailTest

testGetSetSubType 0.003 s
testAddPart 0.001 s
testInit 0.002 s
testSend 0.015 s
testAttach2 0.001 s
testAttach3 0.003 s
testAttachFileLocking 0.001 s
testAddPart2 0.001 s
testGetContainer 0.001 s
testAttachFile 0.008 s
testAttachPath 0.006 s
testSetMsg 0.003 s

IDNEmailAddressConverterTest

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

DataSourceUrlResolverTest

testResolvingHttpLenient 0.653 s
testResolvingHttpNonLenient 0.002 s
testResolvingFilesLenient 0.001 s
testResolvingHttpLenientHost 0.001 s

ImageHtmlEmailTest

testCallingBuildMimeMessageBeforeSent 0.004 s
testSend2 0.021 s
testEmbedFileWithCID 0.002 s
testSend 0.052 s
testGetSetTextMsg 0.001 s
testEmbedFile 0.002 s
testEmbedDataSource 0.002 s
testSendWithPlainTextButNoHtmlContent 0.010 s
testHtmlMailMimeLayout 0.010 s
testAddZipUrl 0.031 s
testEmbedUrlAndFile 0.002 s
testSendWithDefaultCharset 0 s
- public void org.apache.commons.mail2.jakarta.HtmlEmailTest.testSendWithDefaultCharset() throws java.lang.Exception is @Disabled -
testGetSetMsg 0.002 s
testEmbedUrl 1.560 s
testGetSetHtmlMsg 0.004 s
testSendHTMLAutoResolveMultipleFiles 0.040 s
testSendClassPathFileWithNullName 0.024 s
testRegex 0.003 s
testSendHTMLClassPathFile 0.022 s
testSendEmptyHTML2 0.002 s
testSendHtmlUrl 0.370 s
testSendHTMLAbsoluteLocalFile 0.030 s
testSendEmptyHTML 0.002 s
testSendHTMLAutoResolveFile 0.024 s
testEmail127 0.238 s
testSendHtml 0.433 s

InvalidAddressTest

testAddInvalidCc 0.005 s
testAddInvalidTo 0.003 s
testSetInvalidFrom 0.004 s
testAddInvalidBcc 0.008 s

DataSourceCompositeResolverTest

testResolvingFilesLenient 0.577 s
testResolvingFilesNonLenient 0.004 s
testExternalModification 0.001 s

EmailTest

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

SimpleEmailTest

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

Failure Details

[Summary] [Package List] [Test Cases]


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