Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testClosesOnErrors_whenReadThrows (0.13 sec)

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

          assertTrue(
              "stream not closed when copying to sink with option: " + option,
              !okSource.wasStreamOpened() || okSource.wasStreamClosed());
        }
      }
    
      public void testClosesOnErrors_whenReadThrows() {
        TestCharSource failSource = new TestCharSource(STRING, READ_THROWS);
        assertThrows(IOException.class, () -> failSource.copyTo(new TestCharSink()));
        assertTrue(failSource.wasStreamClosed());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharSourceTest.java

          assertTrue(
              "stream not closed when copying to sink with option: " + option,
              !okSource.wasStreamOpened() || okSource.wasStreamClosed());
        }
      }
    
      public void testClosesOnErrors_whenReadThrows() {
        TestCharSource failSource = new TestCharSource(STRING, READ_THROWS);
        assertThrows(IOException.class, () -> failSource.copyTo(new TestCharSink()));
        assertTrue(failSource.wasStreamClosed());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top