From 5b64dcc7be2bcd3f48922895ad963f36edb245db Mon Sep 17 00:00:00 2001 From: rfeng Date: Fri, 28 May 2010 06:17:24 +0000 Subject: Add a workaround for TUSCANY-3572 git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@949110 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/java/services/store/FruitsCatalogImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sca-java-2.x/trunk/modules/binding-rest-runtime/src/test') diff --git a/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/services/store/FruitsCatalogImpl.java b/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/services/store/FruitsCatalogImpl.java index 126b8e7d7a..498576117b 100644 --- a/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/services/store/FruitsCatalogImpl.java +++ b/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/services/store/FruitsCatalogImpl.java @@ -21,6 +21,7 @@ package services.store; import java.util.ArrayList; import java.util.HashMap; +import java.util.List; import java.util.Map; import org.oasisopen.sca.annotation.Init; @@ -49,7 +50,12 @@ public class FruitsCatalogImpl implements Catalog { public Items getItem() { Items items = new Items(); - items.setItems(new ArrayList(catalog.values())); + // Add by order so that we can test in the json array + List list = new ArrayList(); + list.add(catalog.get("Pear")); + list.add(catalog.get("Apple")); + list.add(catalog.get("Orange")); + items.setItems(list); return items; } -- cgit v1.2.3