Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testFileToFile (0.34 sec)

  1. src/test/java/org/codelibs/core/io/FileUtilTest.java

        URL url = ResourceUtil.getResource(getClass().getName().replace('.', '/') + ".txt");
    
        File inputFile = URLUtil.toFile(url);
    
        /**
         * @throws Exception
         */
        @Test
        public void testFileToFile() throws Exception {
            final byte[] bytes = readBytes(inputFile);
            assertThat(bytes, is("あいうえお".getBytes("UTF-8")));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/io/CopyUtilTest.java

            assertThat(result, is(urlString.length()));
            assertThat(writer.toString(), is(urlString));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testFileToFile() throws Exception {
            int result = copy(inputFile, outputFile);
            assertThat(result, is(urlString.getBytes("UTF-8").length));
    
            result = copy(outputFile, "UTF-8", writer);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top