Revision: 479
http://svn.sourceforge.net/stripes/?rev=479&view=rev
Author: bengunter
Date: 2007-03-03 21:10:48 -0800 (Sat, 03 Mar 2007)
Log Message:
-----------
testUrlWithParameterMap was failing only because the parameters were not
appended to the URL string in the correct order. I changed it to use
LinkedHashMap instead of HashMap so that the parameters would be added in a
predictable order.
Modified Paths:
--------------
trunk/tests/src/net/sourceforge/stripes/util/UrlBuilderTest.java
Modified: trunk/tests/src/net/sourceforge/stripes/util/UrlBuilderTest.java
===================================================================
--- trunk/tests/src/net/sourceforge/stripes/util/UrlBuilderTest.java
2007-03-04 04:07:21 UTC (rev 478)
+++ trunk/tests/src/net/sourceforge/stripes/util/UrlBuilderTest.java
2007-03-04 05:10:48 UTC (rev 479)
@@ -15,12 +15,12 @@
*/
package net.sourceforge.stripes.util;
+import java.util.LinkedHashMap;
+import java.util.Map;
+
import org.testng.Assert;
import org.testng.annotations.Test;
-import java.util.Map;
-import java.util.HashMap;
-
/**
* Simple set of tests for the UrlBuilder class.
*
@@ -125,7 +125,7 @@
public void testUrlWithParameterMap() throws Exception {
String path = "/test/page.jsp";
UrlBuilder builder = new UrlBuilder(path, false);
- Map<Object,Object> map = new HashMap<Object,Object>();
+ Map<Object,Object> map = new LinkedHashMap<Object,Object>();
map.put("one", "one");
map.put("two", Literal.list("2", "two"));
map.put("three", Literal.array("3", "three"));
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development