diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-04 22:02:38 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-04 22:02:38 +0000 |
commit | f4a89e8eef219137bcfb625cbf770baa642312a8 (patch) | |
tree | a6cd3c63d7eaaf99dbcadbfef68870669a1becdf /sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/VegetablesCatalogImpl.java | |
parent | 708d0819dea23a7e93d536e9eeb8122444cf3883 (diff) |
Updating item value object to allow better representation of monetary information
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@832883 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/VegetablesCatalogImpl.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/VegetablesCatalogImpl.java b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/VegetablesCatalogImpl.java index 6ca311b42e..e7ae507dd4 100644 --- a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/VegetablesCatalogImpl.java +++ b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/VegetablesCatalogImpl.java @@ -39,9 +39,9 @@ public class VegetablesCatalogImpl implements Catalog { @Init public void init() { String currencySymbol = currencyConverter.getCurrencySymbol(currencyCode); - catalog.add(new Item("Broccoli", currencySymbol + currencyConverter.getConversion("USD", currencyCode, 2.99))); - catalog.add(new Item("Asparagus", currencySymbol + currencyConverter.getConversion("USD", currencyCode, 3.55))); - catalog.add(new Item("Cauliflower", currencySymbol + currencyConverter.getConversion("USD", currencyCode, 1.55))); + catalog.add(new Item("Broccoli", currencyCode, currencySymbol, currencyConverter.getConversion("USD", currencyCode, 2.99))); + catalog.add(new Item("Asparagus", currencyCode, currencySymbol, currencyConverter.getConversion("USD", currencyCode, 3.55))); + catalog.add(new Item("Cauliflower", currencyCode, currencySymbol, currencyConverter.getConversion("USD", currencyCode, 1.55))); } public Item[] get() { |