Class DiskFileItemSerializeTest
java.lang.Object
org.apache.commons.fileupload2.core.DiskFileItemSerializeTest
Serialization Unit tests for
DiskFileItem
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setUp()
void
tearDown()
void
Test creation of a field for which the amount of data falls above the configured threshold.void
Test creation of a field for which the amount of data falls below the configured threshold.void
void
Test deserialization fails when repository is not valid.void
Test creation of a field for which the amount of data equals the configured threshold.void
Test serialization and deserialization when repository is not null.
-
Constructor Details
-
DiskFileItemSerializeTest
public DiskFileItemSerializeTest()
-
-
Method Details
-
setUp
- Throws:
IOException
-
tearDown
- Throws:
IOException
-
testAboveThreshold
Test creation of a field for which the amount of data falls above the configured threshold.- Throws:
IOException
- Test failure.
-
testBelowThreshold
Test creation of a field for which the amount of data falls below the configured threshold.- Throws:
IOException
- Test failure.
-
testCheckFileName
-
testInvalidRepository
Test deserialization fails when repository is not valid.- Throws:
IOException
- Test failure.
-
testThreshold
Test creation of a field for which the amount of data equals the configured threshold.- Throws:
IOException
- Test failure.
-
testValidRepository
Test serialization and deserialization when repository is not null.- Throws:
IOException
- Test failure.
-