
public class SplittableOutputStreamTest extends Object
| Constructor and Description |
|---|
SplittableOutputStreamTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
cannotWriteByteArrayUnlessStarted() |
void |
cannotWriteByteUnlessStarted() |
void |
contentWithOneRecordAndSpaceTo() |
void |
contentWithOneRecordFitsMaxSizeExactly() |
void |
contentWithTwoRecordsFitsMaxSizeExactly() |
void |
contentWithTwoRecordsFitsMaxSizeExactlyIsSplitWhenMaxRecordsCountIsOne() |
void |
exampleSingleExactSplit() |
void |
exampleThreeUnevenSplits() |
void |
exampleTwoExactSplits() |
void |
givenRecordPartWrittenWhenClosedThenThrowsUnderflow() |
void |
invokingEndWhenNotStartedThrowsIllegalState() |
void |
invokingStartWhenAlreadyStartedThrowsIllegalState() |
void |
maxRecordsCannotBeNegative() |
void |
maxRecordsCannotBeZero() |
void |
maxSizeCannotBeNegative() |
void |
maxSizeCannotBeZero() |
void |
sizeOfheadPlusFootCannotExceedMaxSize() |
void |
whenNoRecordsAreWrittenThenSupplierIsNeverCalled() |
void |
whenRecordSizePlusHeadAndFootExceedsMaxSizeThenThrowsBufferOverflow() |
public void contentWithOneRecordFitsMaxSizeExactly()
throws Exception
Exceptionpublic void contentWithOneRecordAndSpaceTo()
throws Exception
Exceptionpublic void contentWithTwoRecordsFitsMaxSizeExactly()
throws Exception
Exceptionpublic void contentWithTwoRecordsFitsMaxSizeExactlyIsSplitWhenMaxRecordsCountIsOne()
throws Exception
Exceptionpublic void sizeOfheadPlusFootCannotExceedMaxSize()
throws IOException
IOExceptionpublic void cannotWriteByteArrayUnlessStarted()
throws IOException
IOExceptionpublic void cannotWriteByteUnlessStarted()
throws IOException
IOExceptionpublic void whenRecordSizePlusHeadAndFootExceedsMaxSizeThenThrowsBufferOverflow()
throws IOException
IOExceptionpublic void invokingEndWhenNotStartedThrowsIllegalState()
throws Exception
Exceptionpublic void invokingStartWhenAlreadyStartedThrowsIllegalState()
throws Exception
Exceptionpublic void maxRecordsCannotBeNegative()
throws Exception
Exceptionpublic void whenNoRecordsAreWrittenThenSupplierIsNeverCalled()
throws Exception
Exceptionpublic void givenRecordPartWrittenWhenClosedThenThrowsUnderflow()
throws Exception
ExceptionCopyright © 2017 earcam. All rights reserved.