diff options
Diffstat (limited to 'branches/sca-equinox/modules/implementation-widget-runtime/src/test/java/store/ShoppingCartImpl.java')
-rw-r--r-- | branches/sca-equinox/modules/implementation-widget-runtime/src/test/java/store/ShoppingCartImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
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()) { |