Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Program (0.19 sec)

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

            final URL url = new File("/Program File").toURI().toURL();
            assertEquals("file:" + getRoot() + "Program File", ResourceUtil.toExternalForm(url));
        }
    
        /**
         * @throws Exception
         */
        public void testGetFileName() throws Exception {
            URL url = new File("/Program File").toURI().toURL();
            assertEquals(getRoot() + "Program File", ResourceUtil.getFileName(url));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/zip/ZipFileUtilTest.java

     * @author koichik
     */
    public class ZipFileUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToJarFilePath() throws Exception {
            final URL url = new URL(null, "zip:/Program Files/foo.zip!/", new URLStreamHandler() {
                @Override
                protected void parseURL(final URL u, final String spec, final int start, final int limit) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/net/URLUtilTest.java

        /**
         * @throws Exception
         */
        public void testEncode() throws Exception {
            assertEquals("Program+Files", URLUtil.encode("Program Files", "UTF-8"));
        }
    
        /**
         * @throws Exception
         */
        public void testDecode() throws Exception {
            assertEquals("Program Files", URLUtil.decode("Program+Files", "UTF-8"));
        }
    
        /**
         * @throws Exception
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/jar/JarFileUtilTest.java

        /**
         * @throws Exception
         */
        public void testToJarFilePath() throws Exception {
            final File f = new File("/Program Files/foo.jar");
            final URL url = new URL("jar:" + f.toURI().toURL() + "!/");
            final String root = new File("/").getCanonicalPath();
            assertEquals(root + "Program Files" + File.separator + "foo.jar", JarFileUtil.toJarFilePath(url));
        }
    
        /**
         * @throws Exception
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.5K bytes
    - Viewed (0)
Back to top