|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.fileupload.FileUploadTestCase
org.apache.commons.fileupload.ServletFileUploadTest
public class ServletFileUploadTest
Unit tests DiskFileUpload
.
Field Summary |
---|
Fields inherited from class org.apache.commons.fileupload.FileUploadTestCase |
---|
CONTENT_TYPE |
Constructor Summary | |
---|---|
ServletFileUploadTest()
|
Method Summary | |
---|---|
void |
testEmptyFile()
This is what the browser does if you submit the form without choosing a file. |
void |
testFilenameCaseSensitivity()
|
void |
testFileUpload()
|
void |
testFILEUPLOAD62()
Test for FILEUPLOAD-62 |
void |
testFoldedHeaders()
Test for FILEUPLOAD-111 |
void |
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. |
void |
testWithInvalidRequest()
|
void |
testWithNullContentType()
|
Methods inherited from class org.apache.commons.fileupload.FileUploadTestCase |
---|
parseUpload, parseUpload, parseUpload |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServletFileUploadTest()
Method Detail |
---|
public void testWithInvalidRequest()
public void testWithNullContentType()
public void testFileUpload() throws IOException, FileUploadException
IOException
FileUploadException
public void testFilenameCaseSensitivity() throws IOException, FileUploadException
IOException
FileUploadException
public void testEmptyFile() throws UnsupportedEncodingException, FileUploadException
UnsupportedEncodingException
FileUploadException
public void testIE5MacBug() throws UnsupportedEncodingException, FileUploadException
UnsupportedEncodingException
FileUploadException
public void testFILEUPLOAD62() throws Exception
Exception
public void testFoldedHeaders() throws IOException, FileUploadException
IOException
FileUploadException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |