Interface InputStreamTests.ReadNBytesTests
-
- All Superinterfaces:
InputStreamTests
- Enclosing interface:
- InputStreamTests
@DisplayName("readNBytes(int)") public static interface InputStreamTests.ReadNBytesTests extends InputStreamTests
Contains tests forInputStream.readNBytes(int)
.- Author:
- Rob Spoor
- Since:
- 3.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.robtimus.junit.support.test.io.InputStreamTests
InputStreamTests.AvailableTests, InputStreamTests.MarkResetTests, InputStreamTests.ReadAllBytesTests, InputStreamTests.ReadByteTests, InputStreamTests.ReadIntoByteArrayPortionTests, InputStreamTests.ReadIntoByteArrayTests, InputStreamTests.ReadNBytesIntoByteArrayPortionTests, InputStreamTests.ReadNBytesTests, InputStreamTests.SkipTests, InputStreamTests.TransferToTests
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
testReadNBytesAfterConsumingStream()
default void
testReadNBytesWithExpectedLength()
default void
testReadNBytesWithLengthExceedingContentLength()
default void
testReadNBytesWithNegativeLength()
default void
testReadNBytesWithSmallerLength()
default void
testReadNBytesWithZeroLength()
-
Methods inherited from interface com.github.robtimus.junit.support.test.io.InputStreamTests
expectedContent, inputStream
-
-
-
-
Method Detail
-
testReadNBytesWithExpectedLength
@Test @DisplayName("readNBytes(int) with expected length") default void testReadNBytesWithExpectedLength()
-
testReadNBytesWithSmallerLength
@Test @DisplayName("readNBytes(int) with smaller length") default void testReadNBytesWithSmallerLength()
-
testReadNBytesWithZeroLength
@Test @DisplayName("readNBytes(int) with 0 length") default void testReadNBytesWithZeroLength()
-
testReadNBytesWithNegativeLength
@Test @DisplayName("readNBytes(byte[], int, int) with a negative length") default void testReadNBytesWithNegativeLength()
-
testReadNBytesWithLengthExceedingContentLength
@Test @DisplayName("readNBytes(int) with a length that exceeds the content length") default void testReadNBytesWithLengthExceedingContentLength()
-
testReadNBytesAfterConsumingStream
@Test @DisplayName("readNBytes(int) after everything has already been consumed") default void testReadNBytesAfterConsumingStream()
-
-