Class JakartaSizesDiskTest
java.lang.Object
org.apache.commons.fileupload2.core.AbstractTest<org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletDiskFileUpload,HttpServletRequest,DiskFileItem,DiskFileItemFactory>
org.apache.commons.fileupload2.core.AbstractSizesTest<org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletDiskFileUpload,HttpServletRequest,DiskFileItem,DiskFileItemFactory>
org.apache.commons.fileupload2.jakarta.servlet6.JakartaSizesDiskTest
public class JakartaSizesDiskTest
extends AbstractSizesTest<org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletDiskFileUpload,HttpServletRequest,DiskFileItem,DiskFileItemFactory>
Unit test for items with varying sizes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletDiskFileUpload
protected JakartaMockHttpServletRequest
newMockHttpServletRequest
(InputStream request, long requestLength, String contentType, int readLimit) Methods inherited from class org.apache.commons.fileupload2.core.AbstractSizesTest
testFileSizeLimit, testFileSizeLimitWithFakedContentLength, testMaxSizeLimit, testMaxSizeLimitUnknownContentLength
Methods inherited from class org.apache.commons.fileupload2.core.AbstractTest
newMockHttpServletRequest, newMockHttpServletRequest
-
Constructor Details
-
JakartaSizesDiskTest
public JakartaSizesDiskTest()
-
-
Method Details
-
newFileUpload
protected org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletDiskFileUpload newFileUpload()- Specified by:
newFileUpload
in classAbstractTest<org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletDiskFileUpload,
HttpServletRequest, DiskFileItem, DiskFileItemFactory>
-
newMockHttpServletRequest
protected JakartaMockHttpServletRequest newMockHttpServletRequest(InputStream request, long requestLength, String contentType, int readLimit) - Specified by:
newMockHttpServletRequest
in classAbstractTest<org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletDiskFileUpload,
HttpServletRequest, DiskFileItem, DiskFileItemFactory>
-