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() {