Interface InputStreamTests.MarkResetTests

    • Method Detail

      • hasDefaultMark

        default boolean hasDefaultMark()
        Returns whether or not the input stream to test has an explicit mark at the start of the stream. If so, then InputStream.reset() is expected to work without calling InputStream.mark(int) first. Otherwise, InputStream.reset() is expected to fail without calling InputStream.mark(int) first.

        This default implementation returns false.

        Returns:
        true if the input stream to test has an explicit mark at the start of the stream, or false otherwise.
      • testMarkSupported

        @Test
        @DisplayName("markSupported()")
        default void testMarkSupported()
      • testMarkAndReset

        @Test
        @DisplayName("mark(int) and reset()")
        default void testMarkAndReset()
      • testResetWithoutMark

        @Test
        @DisplayName("reset() without mark(int)")
        default void testResetWithoutMark()