|
|||||||||
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(String name)
Standard JUnit test case constructor. |
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 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(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(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 |