Home
last modified time | relevance | path

Searched refs:URLEncoder (Results 1 – 16 of 16) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLEncoderTest.java22 import java.net.URLEncoder;
39 URLEncoder.encode(URL)).equals(URL)); in test_encodeLjava_lang_String()
41 URLEncoder.encode(URL2)).equals(URL2)); in test_encodeLjava_lang_String()
43 URLEncoder.encode(URL3)).equals(URL3)); in test_encodeLjava_lang_String()
53 URLEncoder.encode("str", "unknown_enc"); in test_encodeLjava_lang_StringLjava_lang_String()
62 URLEncoder.encode(null, "harmony"); in test_encodeLjava_lang_StringLjava_lang_String()
70 assertEquals("%82%A0", URLEncoder.encode("あ", "Shift_JIS")); in test11571917()
71 assertEquals("%82%A9", URLEncoder.encode("か", "Shift_JIS")); in test11571917()
72 assertEquals("%97%43", URLEncoder.encode("佑", "Shift_JIS")); in test11571917()
73 assertEquals("%24", URLEncoder.encode("$", "Shift_JIS")); in test11571917()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DUrlEncodingTest.java23 import java.net.URLEncoder;
44 assertEquals("a%2Bb", URLEncoder.encode("a+b")); in testEncodingPlus()
45 assertEquals("a%2Bb", URLEncoder.encode("a+b", "UTF-8")); in testEncodingPlus()
60 assertEquals("a+b", URLEncoder.encode("a b")); in testEncodingSpace()
61 assertEquals("a+b", URLEncoder.encode("a b", "UTF-8")); in testEncodingSpace()
127 URLEncoder.encode("ab", (String) null); in testUrlEncoderFailsOnNullCharset()
136 URLEncoder.encode("ab", ""); in testUrlEncoderFailsOnEmptyCharset()
157 URLEncoder.encode("ab", "no-such-charset"); in testUrlEncoderFailsOnInvalidCharset()
213 assertEquals("%00", URLEncoder.encode("\u0000", "UTF-8")); in testUrlEncoderEncodesNonPrintableNonAsciiCharacters()
214 assertEquals("%00", URLEncoder.encode("\u0000")); in testUrlEncoderEncodesNonPrintableNonAsciiCharacters()
[all …]
/libcore/ojluni/src/test/java/net/URLEncoder/
DURLEncoderEncodeArgs.java29 package test.java.net.URLEncoder;
31 import java.net.URLEncoder;
41 String s1 = URLEncoder.encode ("Hello World", (String) null); in testEncodeNull()
50 String s2 = URLEncoder.encode ("Hello World", ""); in testEncodeEmpty()
DEncodingTest.java23 package test.java.net.URLEncoder;
26 import java.net.URLEncoder;
76 String encoded1 = URLEncoder.encode(s, StandardCharsets.UTF_8.name()); in encode()
77 String encoded2 = URLEncoder.encode(s, StandardCharsets.UTF_8); in encode()
DURLEncodeDecode.java31 package test.java.net.URLEncoder;
58 encoded = URLEncoder.encode(str); in testURLEncodeDecode()
61 encoded = URLEncoder.encode(str, enc); in testURLEncodeDecode()
DDecoder.java29 package test.java.net.URLEncoder;
54 String encoded = URLEncoder.encode(strings[i], enc); in testDecoder()
DSurrogatePairs.java31 package test.java.net.URLEncoder;
79 String encoded = URLEncoder.encode(str, "UTF-8"); in test()
DDecodeNonEncoded.java33 package test.java.net.URLEncoder;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURLDecoderTest.java22 import java.net.URLEncoder;
45 URLEncoder.encode(URL)).equals(URL)); in test_decodeLjava_lang_String()
47 URLEncoder.encode(URL2)).equals(URL2)); in test_decodeLjava_lang_String()
49 URLEncoder.encode(URL3)).equals(URL3)); in test_decodeLjava_lang_String()
/libcore/ojluni/src/test/java/net/URLDecoder/
DEncodingTest.java26 import java.net.URLEncoder;
88 String encoded = URLEncoder.encode("http://www.xyz.com/find?key=\u0100\u0101", in testIllegalArgument()
109 String encoded = URLEncoder.encode(s, StandardCharsets.UTF_8.name()); in decode()
DEncodeDecode.java40 String encStr = URLEncoder.encode(str); in testEncodeDecode()
/libcore/ojluni/src/main/java/java/net/
DURLEncoder.java76 public class URLEncoder { class
143 private URLEncoder() { } in URLEncoder() method in URLEncoder
DURLDecoder.java86 static String dfltEncName = URLEncoder.dfltEncName;
/libcore/
Dopenjdk_java_files.bp358 "ojluni/src/main/java/java/net/URLEncoder.java",
DEXPECTED_UPSTREAM391 ojluni/src/main/java/java/net/URLEncoder.java,jdk11u/jdk-11.0.13-ga,src/java.base/share/classes/jav…
/libcore/api/
Dcurrent.txt6233 public class URLEncoder {