Author: ivaynberg Date: Mon Jul 23 13:27:26 2007 New Revision: 558855 URL: http://svn.apache.org/viewvc?view=rev&rev=558855 Log: WICKET-765 make all urls end with / so instead of /app/param1/value1?query it is now always /app/param1/value1/? just like it is in 1.2.6
Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/request/target/coding/MixedParamUrlCodingStrategyTest.java Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/request/target/coding/MixedParamUrlCodingStrategyTest.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/request/target/coding/MixedParamUrlCodingStrategyTest.java?view=diff&rev=558855&r1=558854&r2=558855 ============================================================================== --- incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/request/target/coding/MixedParamUrlCodingStrategyTest.java (original) +++ incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/request/target/coding/MixedParamUrlCodingStrategyTest.java Mon Jul 23 13:27:26 2007 @@ -110,13 +110,13 @@ AppendingStringBuffer url = new AppendingStringBuffer(40); npucs.appendParameters(url, parameters); String urlStr = url.toString(); - assertEquals(20, urlStr.length()); + assertEquals(21, urlStr.length()); assertTrue(urlStr.indexOf("a=1") != -1); assertTrue(urlStr.indexOf("b=2") != -1); assertTrue(urlStr.indexOf("c=3") != -1); assertTrue(urlStr.indexOf("d=4") != -1); assertTrue(urlStr.indexOf("e=5") != -1); - assertTrue(urlStr.matches("^\\?([abcde]=[12345]&){4}([abcde]=[12345])$")); + assertTrue(urlStr.matches("^/\\?([abcde]=[12345]&){4}([abcde]=[12345])$")); } /** @@ -133,7 +133,7 @@ AppendingStringBuffer url = new AppendingStringBuffer(40); npucs.appendParameters(url, parameters); - assertEquals("", url.toString()); + assertEquals("/", url.toString()); } /**