Class AbstractFileUploadTest<AFU extends org.apache.commons.fileupload2.core.AbstractFileUpload<R,I,F>,R,I extends org.apache.commons.fileupload2.core.FileItem<I>,F extends org.apache.commons.fileupload2.core.FileItemFactory<I>>
java.lang.Object
org.apache.commons.fileupload2.core.AbstractFileUploadWrapper<AFU,R,I,F>
org.apache.commons.fileupload2.core.AbstractFileUploadTest<AFU,R,I,F>
- Type Parameters:
AFU
- TheAbstractFileUpload
type.R
- The FileUpload request type.I
- The FileItem type.F
- The FileItemFactory type.
public abstract class AbstractFileUploadTest<AFU extends org.apache.commons.fileupload2.core.AbstractFileUpload<R,I,F>,R,I extends org.apache.commons.fileupload2.core.FileItem<I>,F extends org.apache.commons.fileupload2.core.FileItemFactory<I>>
extends AbstractFileUploadWrapper<AFU,R,I,F>
Common tests for implementations of
AbstractFileUpload
. This is a parameterized test. Tests must be valid and common to all implementations of
FileUpload added as parameter in this class.-
Field Summary
Fields inherited from class org.apache.commons.fileupload2.core.AbstractFileUploadWrapper
upload
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Tests FILEUPLOAD-239void
This is what the browser does if you submit the form without choosing a file.void
void
void
Test case for FILEUPLOAD-130.void
Test for FILEUPLOAD-62void
Test for FILEUPLOAD-111void
Internet Explorer 5 for the Mac has a bug where the carriage return is missing on any boundary line immediately preceding an input with type=image.Methods inherited from class org.apache.commons.fileupload2.core.AbstractFileUploadWrapper
parseUpload, parseUpload, parseUpload
-
Constructor Details
-
AbstractFileUploadTest
-
-
Method Details
-
testContentTypeAttachment
Tests FILEUPLOAD-239- Throws:
IOException
- Test failure.
-
testEmptyFile
This is what the browser does if you submit the form without choosing a file.- Throws:
org.apache.commons.fileupload2.core.FileUploadException
- Test failure.
-
testFileNameCaseSensitivity
- Throws:
IOException
-
testFileUpload
- Throws:
IOException
-
testFileUpload130
Test case for FILEUPLOAD-130.- Throws:
IOException
- Test failure.
-
testFILEUPLOAD62
Test for FILEUPLOAD-62- Throws:
IOException
- Test failure.
-
testFoldedHeaders
Test for FILEUPLOAD-111- Throws:
IOException
- Test failure.
-
testIE5MacBug
Internet Explorer 5 for the Mac has a bug where the carriage return is missing on any boundary line immediately preceding an input with type=image. (type=submit does not have the bug.)- Throws:
org.apache.commons.fileupload2.core.FileUploadException
- Test failure.
-