Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for urlString (0.1 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt

        codePoint: Int,
        encoding: Encoding,
        component: Component,
      ) {
        val expected = component.canonicalize(encoding.encode(codePoint))
        val urlString = component.urlString(expected)
        val url = urlString.toHttpUrl()
        val actual = component.encodedValue(url)
        if (actual != expected) {
          fail("Encoding $component $codePoint using $encoding: '$actual' != '$expected'")
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12.3K 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 testFileToWriter() throws Exception {
            final int result = copy(inputFile, "UTF-8", writer);
            assertThat(result, is(urlString.length()));
            assertThat(writer.toString(), is(urlString));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/zip/ZipFileUtil.java

         */
        public static String toZipFilePath(final URL zipUrl) {
            assertArgumentNotNull("zipUrl", zipUrl);
    
            final String urlString = zipUrl.getPath();
            final int pos = urlString.lastIndexOf('!');
            final String zipFilePath = urlString.substring(0, pos);
            final File zipFile = new File(URLUtil.decode(zipFilePath, "UTF8"));
            return FileUtil.getCanonicalPath(zipFile);
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

            // Cleanup
            iterator.close();
        }
    
        // Helper method to create SMB URLs with proper handler
        private static URL createSmbURL(String urlString) throws MalformedURLException {
            return new URL(null, urlString, new jcifs.smb.Handler());
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTesterJvm.kt

        val encoded = encoding.encode(codePoint)
        val httpUrl = component.urlString(encoded).toHttpUrl()
        val uri = httpUrl.toUri()
        val toAndFromUri = uri.toHttpUrlOrNull()
        val uriStripped = uriStrippedCodePoints.indexOf(codePointString) != -1
        if (uriStripped) {
          if (uri.toString() != component.urlString("")) {
            fail("Encoding $component $codePoint using $encoding")
          }
          return
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/ViewHelperTest.java

            String urlString = fragment.toURLString();
            assertNotNull(urlString);
            assertTrue(urlString.contains("text="));
            assertTrue(urlString.contains("start"));
    
            fragment = new ViewHelper.TextFragment(null, "start", null, null);
            urlString = fragment.toURLString();
            assertNotNull(urlString);
            assertTrue(urlString.contains("text=start"));
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt

       * of the original encoding.
       */
      @Test
      fun rawEncodingRetained() {
        val urlString = "http://%6d%6D:%6d%6D@host/%6d%6D?%6d%6D#%6d%6D"
        val url = parse(urlString)
        assertThat(url.encodedUsername).isEqualTo("%6d%6D")
        assertThat(url.encodedPassword).isEqualTo("%6d%6D")
        assertThat(url.encodedPath).isEqualTo("/%6d%6D")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Aug 04 07:38:48 UTC 2025
    - 69.9K bytes
    - Viewed (0)
Back to top