Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for UnmarkableInputStream (0.09 seconds)

  1. android/guava-tests/test/com/google/common/io/CountingInputStreamTest.java

      }
    
      public void testMarkNotSupported() {
        counter = new CountingInputStream(new UnmarkableInputStream());
    
        IOException expected = assertThrows(IOException.class, () -> counter.reset());
        assertThat(expected).hasMessageThat().isEqualTo("Mark not supported");
      }
    
      private static class UnmarkableInputStream extends InputStream {
        @Override
        public int read() throws IOException {
          return 0;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.5K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/io/CountingInputStreamTest.java

      }
    
      public void testMarkNotSupported() {
        counter = new CountingInputStream(new UnmarkableInputStream());
    
        IOException expected = assertThrows(IOException.class, () -> counter.reset());
        assertThat(expected).hasMessageThat().isEqualTo("Mark not supported");
      }
    
      private static class UnmarkableInputStream extends InputStream {
        @Override
        public int read() throws IOException {
          return 0;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.5K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/io/ByteStreamsTest.java

      }
    
      public void testLimit_markNotSupported() {
        InputStream lin = ByteStreams.limit(new UnmarkableInputStream(), 2);
    
        IOException expected = assertThrows(IOException.class, lin::reset);
        assertThat(expected).hasMessageThat().isEqualTo("Mark not supported");
      }
    
      private static class UnmarkableInputStream extends InputStream {
        @Override
        public int read() throws IOException {
          return 0;
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 22K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

      }
    
      public void testLimit_markNotSupported() {
        InputStream lin = ByteStreams.limit(new UnmarkableInputStream(), 2);
    
        IOException expected = assertThrows(IOException.class, lin::reset);
        assertThat(expected).hasMessageThat().isEqualTo("Mark not supported");
      }
    
      private static class UnmarkableInputStream extends InputStream {
        @Override
        public int read() throws IOException {
          return 0;
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 22K bytes
    - Click Count (0)
Back to Top