org.apache.commons.fileupload
Class FileUploadTestCase

java.lang.Object
  extended by org.apache.commons.fileupload.FileUploadTestCase
Direct Known Subclasses:
ProgressListenerTest, ServletFileUploadTest, SizesTest

public abstract class FileUploadTestCase
extends Object

Base class for deriving test cases.

Version:
$Id: FileUploadTestCase.java 1454693 2013-03-09 12:30:27Z simonetripodi $

Field Summary
protected static String CONTENT_TYPE
           
 
Constructor Summary
FileUploadTestCase()
           
 
Method Summary
protected  List<FileItem> parseUpload(byte[] bytes)
           
protected  List<FileItem> parseUpload(byte[] bytes, String contentType)
           
protected  List<FileItem> parseUpload(String content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_TYPE

protected static final String CONTENT_TYPE
See Also:
Constant Field Values
Constructor Detail

FileUploadTestCase

public FileUploadTestCase()
Method Detail

parseUpload

protected List<FileItem> parseUpload(byte[] bytes)
                              throws FileUploadException
Throws:
FileUploadException

parseUpload

protected List<FileItem> parseUpload(byte[] bytes,
                                     String contentType)
                              throws FileUploadException
Throws:
FileUploadException

parseUpload

protected List<FileItem> parseUpload(String content)
                              throws UnsupportedEncodingException,
                                     FileUploadException
Throws:
UnsupportedEncodingException
FileUploadException


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