Package org.apache.struts.upload
Class TestCommonsMultipartRequestHandler
java.lang.Object
org.apache.struts.mock.TestMockBase
org.apache.struts.upload.TestCommonsMultipartRequestHandler
Unit tests for the
CommonsMultipartRequestHandler
class.- Author:
- ste-gr
-
Field Summary
Fields inherited from class org.apache.struts.mock.TestMockBase
config, context, moduleConfig, moduleConfig2, moduleConfig3, page, principal, request, response, session
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test with maximum file size exceeded.void
Test with maximum request size exceeded.void
Test with no content.void
Test with maximum string length exceeded.void
Tests with multiple files sent with the same name.void
Test for an successful upload.void
Tests with multiple files sent with the same name.Methods inherited from class org.apache.struts.mock.TestMockBase
setUp, setUpDefaultApp, setUpSecondApp, setUpThirdApp, tearDown, testUtilBaseEnvironment
-
Constructor Details
-
TestCommonsMultipartRequestHandler
public TestCommonsMultipartRequestHandler()
-
-
Method Details
-
testAcceptFileWithMaxFileSize
Test with maximum file size exceeded.- Throws:
Exception
-
testAcceptFileWithMaxRequestSize
Test with maximum request size exceeded.- Throws:
Exception
-
testSuccessUploadOfATextFileMultipartRequest
Test for an successful upload.- Throws:
Exception
-
testEmptyContentTypeMultipartRequest
Test with no content. -
testMultipleAccept
Tests with multiple files sent with the same name.- Throws:
Exception
-
testUnacceptedNumberOfFiles
Tests with multiple files sent with the same name.- Throws:
Exception
-
testMultipartRequestMaxStringLength
Test with maximum string length exceeded.- Throws:
Exception
-