public class DeferredFileOutputStreamTest extends junit.framework.TestCase
DeferredFileOutputStream class.| Constructor and Description |
|---|
DeferredFileOutputStreamTest(String name)
Standard JUnit test case constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
testAboveThreshold()
Tests the case where the amount of data exceeds the threshold, and is
therefore written to disk.
|
void |
testAtThreshold()
Tests the case where the amount of data is exactly the same as the
threshold.
|
void |
testBelowThreshold()
Tests the case where the amount of data falls below the threshold, and
is therefore confined to memory.
|
void |
testTempFileAboveThreshold()
Test specifying a temporary file and the threshold is reached.
|
void |
testTempFileAboveThresholdPrefixOnly()
Test specifying a temporary file and the threshold is reached.
|
void |
testTempFileBelowThreshold()
Test specifying a temporary file and the threshold not reached.
|
void |
testTempFileError()
Test specifying a temporary file and the threshold is reached.
|
void |
testThresholdReached()
Tests the case where there are multiple writes beyond the threshold, to
ensure that the
thresholdReached() method is only called
once, as the threshold is crossed for the first time. |
void |
testWriteToLarge()
Test wether writeTo() properly writes large content.
|
void |
testWriteToSmall()
Test wether writeTo() properly writes small content.
|
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringpublic DeferredFileOutputStreamTest(String name)
name - The name of the test case.public void testBelowThreshold()
public void testAtThreshold()
public void testAboveThreshold()
public void testThresholdReached()
thresholdReached() method is only called
once, as the threshold is crossed for the first time.public void testWriteToSmall()
public void testWriteToLarge()
public void testTempFileBelowThreshold()
public void testTempFileAboveThreshold()
public void testTempFileAboveThresholdPrefixOnly()
public void testTempFileError()
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.