Class JakartaStreamingTest
java.lang.Object
org.apache.commons.fileupload2.core.AbstractTest<org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletFileUpload<DiskFileItem,DiskFileItemFactory>,HttpServletRequest,DiskFileItem,DiskFileItemFactory>
org.apache.commons.fileupload2.core.AbstractStreamingTest<org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletFileUpload<DiskFileItem,DiskFileItemFactory>,HttpServletRequest,org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletRequestContext,DiskFileItem,DiskFileItemFactory>
org.apache.commons.fileupload2.jakarta.servlet6.JakartaStreamingTest
public class JakartaStreamingTest
extends AbstractStreamingTest<org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletFileUpload<DiskFileItem,DiskFileItemFactory>,HttpServletRequest,org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletRequestContext,DiskFileItem,DiskFileItemFactory>
Unit test for items with varying sizes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DiskFileItemFactory
protected org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletFileUpload
<DiskFileItem, DiskFileItemFactory> protected HttpServletRequest
newMockHttpServletRequest
(InputStream request, long requestLength, String contentType, int readLimit) protected org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletRequestContext
Methods inherited from class org.apache.commons.fileupload2.core.AbstractStreamingTest
getFooter, getHeader, newRequest, newShortRequest, parseUpload, parseUpload, parseUpload, testFileUpload, testFILEUPLOAD135, testFileUploadException, testInvalidFileNameException, testIOException
Methods inherited from class org.apache.commons.fileupload2.core.AbstractTest
newMockHttpServletRequest, newMockHttpServletRequest
-
Constructor Details
-
JakartaStreamingTest
public JakartaStreamingTest()
-
-
Method Details
-
newDiskFileItemFactory
- Specified by:
newDiskFileItemFactory
in classAbstractStreamingTest<org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletFileUpload<DiskFileItem,
DiskFileItemFactory>, HttpServletRequest, org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletRequestContext, DiskFileItem, DiskFileItemFactory>
-
newFileUpload
protected org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletFileUpload<DiskFileItem,DiskFileItemFactory> newFileUpload()- Specified by:
newFileUpload
in classAbstractTest<org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletFileUpload<DiskFileItem,
DiskFileItemFactory>, HttpServletRequest, DiskFileItem, DiskFileItemFactory>
-
newMockHttpServletRequest
protected HttpServletRequest newMockHttpServletRequest(InputStream request, long requestLength, String contentType, int readLimit) - Specified by:
newMockHttpServletRequest
in classAbstractTest<org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletFileUpload<DiskFileItem,
DiskFileItemFactory>, HttpServletRequest, DiskFileItem, DiskFileItemFactory>
-
newServletRequestContext
protected org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletRequestContext newServletRequestContext(HttpServletRequest request) - Specified by:
newServletRequestContext
in classAbstractStreamingTest<org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletFileUpload<DiskFileItem,
DiskFileItemFactory>, HttpServletRequest, org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletRequestContext, DiskFileItem, DiskFileItemFactory>
-