Apache Commons logo Commons FileUpload

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
82 0 0 0 100% 1.836

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.fileupload 49 0 0 0 100% 1.608
org.apache.commons.fileupload.servlet 2 0 0 0 100% 0.218
org.apache.commons.fileupload.portlet 1 0 0 0 100% 0
org.apache.commons.fileupload.util.mime 30 0 0 0 100% 0.01

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

org.apache.commons.fileupload

Class Tests Errors Failures Skipped Success Rate Time
DiskFileUploadTest 2 0 0 0 100% 0.001
ProgressListenerTest 1 0 0 0 100% 0.444
DefaultFileItemTest 5 0 0 0 100% 0.002
MultipartStreamTest 3 0 0 0 100% 0.001
ParameterParserTest 5 0 0 0 100% 0
FileItemHeadersTest 1 0 0 0 100% 0
StreamingTest 5 0 0 0 100% 0.827
FileUploadTest 16 0 0 0 100% 0.009
SizesTest 5 0 0 0 100% 0.295
DiskFileItemSerializeTest 6 0 0 0 100% 0.029

org.apache.commons.fileupload.servlet

Class Tests Errors Failures Skipped Success Rate Time
ServletFileUploadTest 2 0 0 0 100% 0.218

org.apache.commons.fileupload.portlet

Class Tests Errors Failures Skipped Success Rate Time
PortletFileUploadTest 1 0 0 0 100% 0

org.apache.commons.fileupload.util.mime

Class Tests Errors Failures Skipped Success Rate Time
Base64DecoderTestCase 13 0 0 0 100% 0.003
QuotedPrintableDecoderTestCase 11 0 0 0 100% 0.003
MimeUtilityTestCase 6 0 0 0 100% 0.004

Test Cases

[Summary] [Package List] [Test Cases]

DiskFileUploadTest

testWithInvalidRequest 0
testWithNullContentType 0.001

ProgressListenerTest

testProgressListener 0.444

Base64DecoderTestCase

decodeTrailingJunk 0
nonBase64Bytes 0
badPaddingLeading1 0
badPaddingLeading2 0
decodeWithInnerPad 0
decodeTrailing1 0
decodeTrailing2 0
decodeTrailing3 0
truncatedString 0
nonASCIIcharacter 0
badLength 0
rfc4648Section10Decode 0
badPadding 0

DefaultFileItemTest

testTextFieldConstruction 0
testAboveThresholdSpecifiedRepository 0.001
testBelowThreshold 0
testAboveThresholdDefaultRepository 0
testFileFieldConstruction 0

MultipartStreamTest

testSmallBuffer 0
testThreeParamConstructor 0
testTwoParamConstructor 0

ParameterParserTest

testFileUpload139 0
testContentTypeParsing 0
testParsing 0
testParsingEscapedChars 0
fileUpload199 0

QuotedPrintableDecoderTestCase

invalidCharDecode 0
unsafeDecodeLowerCase 0.001
invalidQuotedPrintableEncoding 0
truncatedEscape 0
unsafeDecode 0
emptyDecode 0
plainDecode 0
invalidSoftBreak1 0
invalidSoftBreak2 0
basicEncodeDecode 0
softLineBreakDecode 0

FileItemHeadersTest

testFileItemHeaders 0

ServletFileUploadTest

parseParameterMap 0.185
parseImpliedUtf8 0

StreamingTest

testInvalidFileNameException 0.003
testFILEUPLOAD135 0.001
testIOException 0.151
testFileUpload 0.354
testFileUploadException 0.314

PortletFileUploadTest

parseParameterMap 0

FileUploadTest

testFileUpload130[org.apache.commons.fileupload.servlet.ServletFileUpload@7cbd213e] 0
testFoldedHeaders[org.apache.commons.fileupload.servlet.ServletFileUpload@7cbd213e] 0
testFILEUPLOAD62[org.apache.commons.fileupload.servlet.ServletFileUpload@7cbd213e] 0.001
testEmptyFile[org.apache.commons.fileupload.servlet.ServletFileUpload@7cbd213e] 0
testContentTypeAttachment[org.apache.commons.fileupload.servlet.ServletFileUpload@7cbd213e] 0
testFileUpload[org.apache.commons.fileupload.servlet.ServletFileUpload@7cbd213e] 0.001
testFilenameCaseSensitivity[org.apache.commons.fileupload.servlet.ServletFileUpload@7cbd213e] 0
testIE5MacBug[org.apache.commons.fileupload.servlet.ServletFileUpload@7cbd213e] 0
testFileUpload130[org.apache.commons.fileupload.portlet.PortletFileUpload@569cfc36] 0.001
testFoldedHeaders[org.apache.commons.fileupload.portlet.PortletFileUpload@569cfc36] 0
testFILEUPLOAD62[org.apache.commons.fileupload.portlet.PortletFileUpload@569cfc36] 0
testEmptyFile[org.apache.commons.fileupload.portlet.PortletFileUpload@569cfc36] 0
testContentTypeAttachment[org.apache.commons.fileupload.portlet.PortletFileUpload@569cfc36] 0
testFileUpload[org.apache.commons.fileupload.portlet.PortletFileUpload@569cfc36] 0.001
testFilenameCaseSensitivity[org.apache.commons.fileupload.portlet.PortletFileUpload@569cfc36] 0
testIE5MacBug[org.apache.commons.fileupload.portlet.PortletFileUpload@569cfc36] 0

SizesTest

testFileSizeLimitWithFakedContentLength 0
testMaxSizeLimitUnknownContentLength 0.001
testMaxSizeLimit 0.001
testFileUpload 0.293
testFileSizeLimit 0

MimeUtilityTestCase

decodeUtf8Base64Encoded 0
decodeIso88591Base64EncodedWithWhiteSpace 0.001
decodeIso88591Base64Encoded 0
decodeUtf8QuotedPrintableEncoded 0
noNeedToDecode 0
decodeInvalidEncoding 0.001

DiskFileItemSerializeTest

testInvalidRepositoryWithNullChar 0.021
testBelowThreshold 0.001
testThreshold 0.001
testValidRepository 0.001
testAboveThreshold 0.002
testInvalidRepository 0.002