Search Options

Display Count
Sort
Preferred Language
Advanced Search

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

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

        File i18nFile = getTestFile("i18n.txt");
        StringBuilder sb = new StringBuilder();
        Files.copy(i18nFile, UTF_8, sb);
        assertThat(sb.toString()).isEqualTo(I18N);
      }
    
      public void testCopyFile() throws IOException {
        File i18nFile = getTestFile("i18n.txt");
        File temp = createTempFile();
        Files.copy(i18nFile, temp);
        assertThat(Files.toString(temp, UTF_8)).isEqualTo(I18N);
      }
    
    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