|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.fileupload.DefaultFileItemTest
public class DefaultFileItemTest
Unit tests for DefaultFileItem.
| Constructor Summary | |
|---|---|
DefaultFileItemTest()
|
|
| Method Summary | |
|---|---|
protected FileItemFactory |
createFactory(File repository)
Creates a new FileItemFactory and returns it, obscuring
from the caller the underlying implementation of this interface. |
void |
doTestAboveThreshold(File repository)
Common code for cases where the amount of data is above the configured threshold, but the ultimate destination of the data has not yet been determined. |
void |
testAboveThresholdDefaultRepository()
Test creation of a field for which the amount of data falls above the configured threshold, where no specific repository is configured. |
void |
testAboveThresholdSpecifiedRepository()
Test creation of a field for which the amount of data falls above the configured threshold, where a specific repository is configured. |
void |
testBelowThreshold()
Test creation of a field for which the amount of data falls below the configured threshold. |
void |
testContentCharSet()
Test construction of content charset. |
void |
testFileFieldConstruction()
Test construction of a file field. |
void |
testTextFieldConstruction()
Test construction of a regular text field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFileItemTest()
| Method Detail |
|---|
public void testTextFieldConstruction()
public void testFileFieldConstruction()
public void testBelowThreshold()
public void testAboveThresholdDefaultRepository()
public void testAboveThresholdSpecifiedRepository()
public void doTestAboveThreshold(File repository)
repository - The directory within which temporary files will be
created.protected FileItemFactory createFactory(File repository)
FileItemFactory and returns it, obscuring
from the caller the underlying implementation of this interface.
repository - The directory within which temporary files will be
created.
FileItemFactory instance.
public void testContentCharSet()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||