Interface InputStreamTests.ReadNBytesTests

    • 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()