|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--org.apache.commons.cactus.client.TestAutoReadHttpURLConnection
Unit tests of the AutoReadHttpURLConnection
class.
Constructor Summary | |
TestAutoReadHttpURLConnection(java.lang.String theName)
Defines the testcase name for JUnit. |
Method Summary | |
static void |
main(java.lang.String[] theArgs)
Start the tests. |
void |
setUp()
Run prior to each test to create an autoreader of a mock http url connection that returns test data |
void |
testChunkSizeDivisible()
Tests where the test data size is exactly divisible by the chunk size |
void |
testChunkSizeRemainder()
Tests where the test data size is not exactly divisible by the chunk size |
void |
testReadFully()
Tests that the wrapped connection's input stream is automatically read on first call to getInputStream |
Methods inherited from class junit.framework.TestCase |
countTestCases, getName, name, run, run, runBare, setName, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TestAutoReadHttpURLConnection(java.lang.String theName)
theName
- the testcase's name.Method Detail |
public static void main(java.lang.String[] theArgs)
theArgs
- the arguments. Not usedpublic void setUp()
public void testReadFully() throws java.lang.Exception
public void testChunkSizeRemainder() throws java.lang.Exception
public void testChunkSizeDivisible() throws java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |