Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testToFile (2.09 sec)

  1. src/test/java/org/codelibs/core/net/URLUtilTest.java

            assertEquals("zip", URLUtil.toCanonicalProtocol("zip"));
            assertEquals("file", URLUtil.toCanonicalProtocol("file"));
        }
    
        /**
         * @throws Exception
         */
        public void testToFile() throws Exception {
            final File file = new File("Program Files/hoge.txt");
            final URL url = file.toURI().toURL();
            assertEquals(file.getAbsoluteFile(), URLUtil.toFile(url));
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/http/NetworkExplorerTest.java

            verify(response).setContentType("application/octet-stream");
        }
    
        /**
         * Test doFile method directly - simplified test
         */
        @Test
        void testDoFile() throws Exception {
            initializeNetworkExplorer(false, "jCIFS");
    
            // Setup mock file with minimal required behavior
            String content = "File content for testing";
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
Back to top