|
|||||||||
| 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.DefaultFileItemTest
public class DefaultFileItemTest
Unit tests for DefaultFileItem.
| Constructor Summary | |
|---|---|
DefaultFileItemTest(java.lang.String name)
Standard JUnit test case constructor. |
|
| Method Summary | |
|---|---|
protected org.apache.commons.fileupload.FileItemFactory |
createFactory(java.io.File repository)
Creates a new FileItemFactory and returns it, obscuring
from the caller the underlying implementation of this interface. |
void |
doTestAboveThreshold(java.io.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 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 DefaultFileItemTest(java.lang.String name)
name - The name of the test case.| Method Detail |
|---|
public void testTextFieldConstruction()
public void testFileFieldConstruction()
public void testBelowThreshold()
public void testAboveThresholdDefaultRepository()
public void testAboveThresholdSpecifiedRepository()
public void doTestAboveThreshold(java.io.File repository)
repository - The directory within which temporary files will be
created.protected org.apache.commons.fileupload.FileItemFactory createFactory(java.io.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 java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||