Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testNewWriter (0.05 seconds)

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

        BufferedReader r = Files.newReader(asciiFile, US_ASCII);
        try {
          assertThat(r.readLine()).isEqualTo(ASCII);
        } finally {
          r.close();
        }
      }
    
      public void testNewWriter() throws IOException {
        File temp = createTempFile();
        assertThrows(NullPointerException.class, () -> Files.newWriter(temp, null));
    
        assertThrows(NullPointerException.class, () -> Files.newWriter(null, UTF_8));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 22.8K bytes
    - Click Count (0)
Back to Top