diff options
Diffstat (limited to 'branches/sca-equinox/modules/implementation-widget-runtime/src/test/java')
2 files changed, 5 insertions, 5 deletions
diff --git a/branches/sca-equinox/modules/implementation-widget-runtime/src/test/java/store/CatalogImpl.java b/branches/sca-equinox/modules/implementation-widget-runtime/src/test/java/store/CatalogImpl.java index f694c758dc..bed053eeee 100644 --- a/branches/sca-equinox/modules/implementation-widget-runtime/src/test/java/store/CatalogImpl.java +++ b/branches/sca-equinox/modules/implementation-widget-runtime/src/test/java/store/CatalogImpl.java @@ -34,9 +34,9 @@ public class CatalogImpl implements Catalog { @Init public void init() { - catalog.add("Apple - US$ 2.99"); - catalog.add("Orange - US$ 3.55"); - catalog.add("Pear - US$ 1.55"); + catalog.add("Apple - $ 2.99"); + catalog.add("Orange - $ 3.55"); + catalog.add("Pear - $ 1.55"); } public String[] get() { diff --git a/branches/sca-equinox/modules/implementation-widget-runtime/src/test/java/store/ShoppingCartImpl.java b/branches/sca-equinox/modules/implementation-widget-runtime/src/test/java/store/ShoppingCartImpl.java index d4d2810d5c..37e8d0161a 100644 --- a/branches/sca-equinox/modules/implementation-widget-runtime/src/test/java/store/ShoppingCartImpl.java +++ b/branches/sca-equinox/modules/implementation-widget-runtime/src/test/java/store/ShoppingCartImpl.java @@ -47,7 +47,6 @@ public class ShoppingCartImpl implements Collection { for (Entry entry : cart.values()) { feed.addEntry(entry); } - return feed; } @@ -83,7 +82,7 @@ public class ShoppingCartImpl implements Collection { entry.addLink(id, "edit"); entry.addLink(id, "alternate"); - entry.setEdited(new Date()); + entry.setUpdated(new Date()); cart.put(id, entry); return entry; @@ -106,6 +105,7 @@ public class ShoppingCartImpl implements Collection { String currencySymbol = ""; if (!cart.isEmpty()) { String item = ((Entry)cart.values().iterator().next()).getContent(); + // Select first symbol after dash. currencySymbol = item.substring(item.indexOf("-") + 2, item.indexOf("-") + 3); } for (Entry entry : cart.values()) { |