Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testClosesOnErrors_whenWritingFromReaderThatThrows (0.21 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

        assertThrows(IOException.class, () -> new TestCharSource(STRING).copyTo(failSink));
        assertTrue(failSink.wasStreamClosed());
      }
    
      public void testClosesOnErrors_whenWritingFromReaderThatThrows() {
        TestCharSink okSink = new TestCharSink();
        assertThrows(IOException.class, () -> okSink.writeFrom(new TestReader(READ_THROWS)));
        assertTrue(okSink.wasStreamClosed());
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 4.6K bytes
    - Click Count (0)
Back to Top