org.apache.commons.fileupload
Class StreamingTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.fileupload.StreamingTest
All Implemented Interfaces:
junit.framework.Test

public class StreamingTest
extends junit.framework.TestCase

Unit test for items with varying sizes.


Constructor Summary
StreamingTest()
           
 
Method Summary
 void testFileUpload()
          Tests a file upload with varying file sizes.
 void testFILEUPLOAD135()
          Test for FILEUPLOAD-135
 void testFileUploadException()
          Tests, whether an invalid request throws a proper exception.
 void testInvalidFileNameException()
          Tests, whether an InvalidFileNameException is thrown.
 void testIOException()
          Tests, whether an IOException is properly delegated.
 
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

StreamingTest

public StreamingTest()
Method Detail

testFileUpload

public void testFileUpload()
                    throws IOException,
                           FileUploadException
Tests a file upload with varying file sizes.

Throws:
IOException
FileUploadException

testFileUploadException

public void testFileUploadException()
                             throws IOException,
                                    FileUploadException
Tests, whether an invalid request throws a proper exception.

Throws:
IOException
FileUploadException

testIOException

public void testIOException()
                     throws IOException
Tests, whether an IOException is properly delegated.

Throws:
IOException

testFILEUPLOAD135

public void testFILEUPLOAD135()
                       throws IOException,
                              FileUploadException
Test for FILEUPLOAD-135

Throws:
IOException
FileUploadException

testInvalidFileNameException

public void testInvalidFileNameException()
                                  throws Exception
Tests, whether an InvalidFileNameException is thrown.

Throws:
Exception


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.