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 |
regressionEnsureLastRecordWritten() |
void |
sizeOfHeadPlusFootCannotExceedMaxSize() |
void |
whenNoRecordsAreWrittenThenSupplierIsNeverCalled() |
void |
whenRecordSizePlusHeadAndFootExceedsMaxSizeThenThrowsBufferOverflow() |
@Test public void contentWithOneRecordFitsMaxSizeExactly() throws Exception
Exception
@Test public void contentWithOneRecordAndSpaceTo() throws Exception
Exception
@Test public void contentWithTwoRecordsFitsMaxSizeExactly() throws Exception
Exception
@Test public void contentWithTwoRecordsFitsMaxSizeExactlyIsSplitWhenMaxRecordsCountIsOne() throws Exception
Exception
@Test public void sizeOfHeadPlusFootCannotExceedMaxSize() throws IOException
IOException
@Test public void cannotWriteByteArrayUnlessStarted() throws IOException
IOException
@Test public void cannotWriteByteUnlessStarted() throws IOException
IOException
@Test public void whenRecordSizePlusHeadAndFootExceedsMaxSizeThenThrowsBufferOverflow() throws IOException
IOException
@Test public void invokingEndWhenNotStartedThrowsIllegalState() throws Exception
Exception
@Test public void invokingStartWhenAlreadyStartedThrowsIllegalState() throws Exception
Exception
@Test public void maxRecordsCannotBeZero() throws Exception
Exception
@Test public void maxSizeCannotBeNegative() throws Exception
Exception
@Test public void maxRecordsCannotBeNegative() throws Exception
Exception
@Test public void whenNoRecordsAreWrittenThenSupplierIsNeverCalled() throws Exception
Exception
@Test public void givenRecordPartWrittenWhenClosedThenThrowsUnderflow() throws Exception
Exception
@Test public void exampleSingleExactSplit() throws Exception
Exception
@Test public void exampleThreeUnevenSplits() throws Exception
Exception
Copyright © 2017–2018 earcam. All rights reserved.