Class JavaxServletFileUploadTest
java.lang.Object
org.apache.commons.fileupload2.core.AbstractFileUploadWrapper<org.apache.commons.fileupload2.javax.JavaxServletFileUpload<DiskFileItem,DiskFileItemFactory>,javax.servlet.http.HttpServletRequest,DiskFileItem,DiskFileItemFactory>
org.apache.commons.fileupload2.core.AbstractFileUploadTest<org.apache.commons.fileupload2.javax.JavaxServletFileUpload<DiskFileItem,DiskFileItemFactory>,javax.servlet.http.HttpServletRequest,DiskFileItem,DiskFileItemFactory>
org.apache.commons.fileupload2.javax.JavaxServletFileUploadTest
public class JavaxServletFileUploadTest
extends AbstractFileUploadTest<org.apache.commons.fileupload2.javax.JavaxServletFileUpload<DiskFileItem,DiskFileItemFactory>,javax.servlet.http.HttpServletRequest,DiskFileItem,DiskFileItemFactory>
Tests
JavaxServletFileUpload
.- See Also:
-
Field Summary
Fields inherited from class org.apache.commons.fileupload2.core.AbstractFileUploadWrapper
upload
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparseUpload
(org.apache.commons.fileupload2.javax.JavaxServletFileUpload<DiskFileItem, DiskFileItemFactory> upload, byte[] bytes, String contentType) void
Runs a test with varying file sizes.void
void
Methods inherited from class org.apache.commons.fileupload2.core.AbstractFileUploadTest
testContentTypeAttachment, testEmptyFile, testFileNameCaseSensitivity, testFileUpload130, testFILEUPLOAD62, testFoldedHeaders, testIE5MacBug
Methods inherited from class org.apache.commons.fileupload2.core.AbstractFileUploadWrapper
parseUpload, parseUpload
-
Constructor Details
-
JavaxServletFileUploadTest
public JavaxServletFileUploadTest()
-
-
Method Details
-
parseUpload
public List<DiskFileItem> parseUpload(org.apache.commons.fileupload2.javax.JavaxServletFileUpload<DiskFileItem, DiskFileItemFactory> upload, byte[] bytes, String contentType) throws FileUploadException- Specified by:
parseUpload
in classAbstractFileUploadWrapper<org.apache.commons.fileupload2.javax.JavaxServletFileUpload<DiskFileItem,
DiskFileItemFactory>, javax.servlet.http.HttpServletRequest, DiskFileItem, DiskFileItemFactory> - Throws:
FileUploadException
-
testFileUpload
Runs a test with varying file sizes.- Overrides:
testFileUpload
in classAbstractFileUploadTest<org.apache.commons.fileupload2.javax.JavaxServletFileUpload<DiskFileItem,
DiskFileItemFactory>, javax.servlet.http.HttpServletRequest, DiskFileItem, DiskFileItemFactory> - Throws:
IOException
FileUploadException
-
testParseImpliedUtf8
- Throws:
Exception
-
testParseParameterMap
- Throws:
Exception
-