From d2ed8a61d1cd29b8243523d217ae589d3142d5a1 Mon Sep 17 00:00:00 2001 From: Erwin Vervaet Date: Fri, 22 Dec 2006 19:20:49 +0000 Subject: [PATCH] Fix: we can be sure about the order of the parameters. --- .../RequestParameterFlowExecutorArgumentHandlerTests.java | 3 ++- .../support/RequestPathFlowExecutorArgumentHandlerTests.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-webflow/src/test/java/org/springframework/webflow/executor/support/RequestParameterFlowExecutorArgumentHandlerTests.java b/spring-webflow/src/test/java/org/springframework/webflow/executor/support/RequestParameterFlowExecutorArgumentHandlerTests.java index ac720750..538dd7db 100644 --- a/spring-webflow/src/test/java/org/springframework/webflow/executor/support/RequestParameterFlowExecutorArgumentHandlerTests.java +++ b/spring-webflow/src/test/java/org/springframework/webflow/executor/support/RequestParameterFlowExecutorArgumentHandlerTests.java @@ -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() { diff --git a/spring-webflow/src/test/java/org/springframework/webflow/executor/support/RequestPathFlowExecutorArgumentHandlerTests.java b/spring-webflow/src/test/java/org/springframework/webflow/executor/support/RequestPathFlowExecutorArgumentHandlerTests.java index fa5ef9ab..ce4580a6 100644 --- a/spring-webflow/src/test/java/org/springframework/webflow/executor/support/RequestPathFlowExecutorArgumentHandlerTests.java +++ b/spring-webflow/src/test/java/org/springframework/webflow/executor/support/RequestPathFlowExecutorArgumentHandlerTests.java @@ -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() {