public class CountedInputStreamTest extends Object
Constructor and Description |
---|
CountedInputStreamTest() |
Modifier and Type | Method and Description |
---|---|
void |
afterReadingOneByteThenCountIsOne() |
void |
afterThreeCallsToReadTheCountIsThree() |
void |
byteArrayPopulatedByReadIsEqualToThatFromDelegate() |
void |
byteReturnedFromReadIsEqualToThatFromDelegate() |
void |
callingResetSetsCountToZero() |
void |
countCorrectWhenMarkedThenMarkReset() |
void |
countCorrectWhenMarkedThenMarkResetAndCountReset() |
void |
endOfStreamIsHonoured() |
void |
markSupported() |
void |
requireThatWrappedInputStreamIsNotNull() |
void |
underlyingIsClosed() |
void |
whenUninitializedThenTheCountIsZero() |
@Test public void underlyingIsClosed() throws IOException
IOException
@Test public void requireThatWrappedInputStreamIsNotNull() throws IOException
IOException
@Test public void whenUninitializedThenTheCountIsZero() throws IOException
IOException
@Test public void afterReadingOneByteThenCountIsOne() throws IOException
IOException
@Test public void endOfStreamIsHonoured() throws IOException
IOException
@Test public void afterThreeCallsToReadTheCountIsThree() throws IOException
IOException
@Test public void byteReturnedFromReadIsEqualToThatFromDelegate() throws IOException
IOException
@Test public void byteArrayPopulatedByReadIsEqualToThatFromDelegate() throws IOException
IOException
@Test public void callingResetSetsCountToZero() throws IOException
IOException
@Test public void markSupported() throws IOException
IOException
@Test public void countCorrectWhenMarkedThenMarkReset() throws IOException
IOException
@Test public void countCorrectWhenMarkedThenMarkResetAndCountReset() throws IOException
IOException
Copyright © 2017–2018 earcam. All rights reserved.