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
Exceptionpublic void testMarkInitiallyAndReset()
                               throws Exception
Exceptionpublic void testMarkAndResetWithWrongExpectedLength()
                                             throws Exception
Exceptionpublic void testMarkAndResetAtEnd()
                           throws Exception
Exceptionpublic void testSkipIncluded()
                      throws IOException
IOExceptionpublic void testSkipIncludedFailure()
                             throws IOException
IOExceptionpublic void testSkipExcluded()
                      throws IOException
IOExceptionpublic void testSkipExcludedFailure()
                             throws IOException
IOExceptionpublic void testOverSkipped()
                     throws IOException
IOExceptionCopyright © 2021. All rights reserved.