Fix: we can be sure about the order of the parameters.

This commit is contained in:
Erwin Vervaet
2006-12-22 19:20:49 +00:00
parent dbbeaea171
commit d2ed8a61d1
2 changed files with 3 additions and 2 deletions

View File

@@ -140,7 +140,8 @@ public class RequestParameterFlowExecutorArgumentHandlerTests extends TestCase {
input.put("baz", new Integer(3));
FlowDefinitionRedirect redirect = new FlowDefinitionRedirect("flow", input);
String url = argumentHandler.createFlowDefinitionUrl(redirect, context);
assertEquals("/app/flows.htm?_flowId=flow&foo=bar&baz=3", url);
assertTrue("/app/flows.htm?_flowId=flow&foo=bar&baz=3".equals(url) ||
"/app/flows.htm?_flowId=flow&baz=3&foo=bar".equals(url));
}
public void testCreateFlowExecutionUrl() {

View File

@@ -77,7 +77,7 @@ public class RequestPathFlowExecutorArgumentHandlerTests extends TestCase {
input.put("baz", new Integer(3));
FlowDefinitionRedirect redirect = new FlowDefinitionRedirect("flow", input);
String url = argumentHandler.createFlowDefinitionUrl(redirect, context);
assertEquals("/app/flows/flow?foo=bar&baz=3", url);
assertTrue("/app/flows/flow?foo=bar&baz=3".equals(url) || "/app/flows/flow?baz=3&foo=bar".equals(url));
}
public void testCreateFlowExecutionUrl() {