public class LengthCheckInputStreamTest extends Object
Constructor and Description |
---|
LengthCheckInputStreamTest() |
Modifier and Type | Method and Description |
---|---|
void |
testContentLength()
Tests if the content length set in the stream equals the bytes read from
the stream.
|
void |
testMarkAndResetAtEnd()
This test case initiates a marks the stream initially, drains the whole
stream.
|
void |
testMarkAndResetWithWrongExpectedLength()
This test case initiates a mark after reading 100 bytes from the stream.
|
void |
testMarkInitiallyAndReset()
This test case initiates a mark at the start, reads the first 100 bytes
from the stream.
|
void |
testOverSkipped()
Skipped more than what's expected.
|
void |
testSkipExcluded()
Actual number of bytes consumed is exactly what's expected, when skipped
bytes are excluded.
|
void |
testSkipExcludedFailure()
Actual number of bytes consumed is less than what's expected, when
skipped bytes are excluded.
|
void |
testSkipIncluded()
Actual number of bytes consumed is exactly what's expected, when
skipped bytes are included.
|
void |
testSkipIncludedFailure()
Actual number of bytes consumed is more than what's expected, when
skipped bytes are included.
|
public void testContentLength() throws Exception
Exception
public void testMarkInitiallyAndReset() throws Exception
Exception
public void testMarkAndResetWithWrongExpectedLength() throws Exception
Exception
public void testMarkAndResetAtEnd() throws Exception
Exception
public void testSkipIncluded() throws IOException
IOException
public void testSkipIncludedFailure() throws IOException
IOException
public void testSkipExcluded() throws IOException
IOException
public void testSkipExcludedFailure() throws IOException
IOException
public void testOverSkipped() throws IOException
IOException
Copyright © 2017. All rights reserved.