Revert changes which broke backwad compatibility based on discussion in jenkins-dev list

This commit is contained in:
lvotypko committed 2013-01-29 15:51:16 +01:00
1 parent 12ee4f9f22
commit 3d568123f3
2 files changed
+3 -11

No files matched your search

+1 -9
View File
@@ -121,14 +121,6 @@ public class UtilTest extends TestCase {
assertEquals(encoded, "http://hudson/job/Hudson%20Job");
}
/**
* Test that Strings that contain ampersand are correctly URL encoded.
*/
public void testEncodeAmpersand() {
final String urlWithAmpersand = "http://hudson/job/Hudson-job/label1&&label2";
String encoded = Util.encode(urlWithAmpersand);
assertEquals(encoded, "http://hudson/job/Hudson-job/label1%26%26label2");
}
/**
* Test the rawEncode() method.
@@ -137,7 +129,7 @@ public class UtilTest extends TestCase {
String[] data = { // Alternating raw,encoded
"abcdefghijklmnopqrstuvwxyz", "abcdefghijklmnopqrstuvwxyz",
"ABCDEFGHIJKLMNOPQRSTUVWXYZ", "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
"01234567890!@$*()-_=+',.", "01234567890!@$*()-_=+',.",
"01234567890!@$&*()-_=+',.", "01234567890!@$&*()-_=+',.",
" \"#%/:;<>?", "%20%22%23%25%2F%3A%3B%3C%3E%3F",
"[\\]^`{|}~", "%5B%5C%5D%5E%60%7B%7C%7D%7E",
"d\u00E9velopp\u00E9s", "d%C3%A9velopp%C3%A9s",