Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testClosesOnErrors_whenWriteThrows (0.15 sec)

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

          assertTrue(
              "stream not closed when copying from source with option: " + option,
              !okSink.wasStreamOpened() || okSink.wasStreamClosed());
        }
      }
    
      public void testClosesOnErrors_whenWriteThrows() {
        TestCharSink failSink = new TestCharSink(WRITE_THROWS);
        assertThrows(IOException.class, () -> new TestCharSource(STRING).copyTo(failSink));
        assertTrue(failSink.wasStreamClosed());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top