summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2012-06-16 18:14:02 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2012-06-16 18:14:02 +0000
commit85d8389c908fee32cdc69e164e9db016eb5669ff (patch)
tree19cb31efeef2012fc9a1afaf2d0a243d4b079425
parent9b335d1eec8f9844d481999c7d3a9ea4dc2d0c89 (diff)
Updating store sample to use new widget implementation way to define how the resources are exposed without using explicit binding configuration
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1350975 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--sca-java-2.x/trunk/samples/applications/store/src/main/resources/store.composite9
-rw-r--r--sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java1
2 files changed, 3 insertions, 7 deletions
diff --git a/sca-java-2.x/trunk/samples/applications/store/src/main/resources/store.composite b/sca-java-2.x/trunk/samples/applications/store/src/main/resources/store.composite
index f018751670..bb60f96a7a 100644
--- a/sca-java-2.x/trunk/samples/applications/store/src/main/resources/store.composite
+++ b/sca-java-2.x/trunk/samples/applications/store/src/main/resources/store.composite
@@ -23,13 +23,10 @@
name="store">
<component name="Store">
- <tuscany:implementation.widget location="uiservices/store.html"/>
- <service name="Widget">
- <tuscany:binding.rest uri="/store"/>
- </service>
+ <tuscany:implementation.widget location="uiservices/store.html" widgetUri="/store"/>
<reference name="catalog" target="Catalog"/>
- <reference name="shoppingCart" target="ShoppingCart/Cart"/>
- <reference name="shoppingTotal" target="ShoppingCart/Total"/>
+ <reference name="shoppingCart" target="ShoppingCart/Cart"/>
+ <reference name="shoppingTotal" target="ShoppingCart/Total"/>
</component>
<component name="Catalog">
diff --git a/sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java b/sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java
index 7fa866d1c6..2aa4f89e2f 100644
--- a/sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java
+++ b/sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java
@@ -30,7 +30,6 @@ import org.apache.tuscany.sca.node.Node;
import org.apache.tuscany.sca.node.NodeFactory;
import org.junit.AfterClass;
import org.junit.BeforeClass;
-import org.junit.Ignore;
import org.junit.Test;
import client.Shopper;