From a40e527938d76ba71f211da7e327adb50384ba69 Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:26:33 +0000 Subject: Moving 1.x tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835157 13f79535-47bb-0310-9956-ffa450edef68 --- .../store-test/META-INF/sca-contribution.xml | 27 --- .../1.3/tutorial/store-test/client/Shopper.java | 29 --- tags/java/sca/1.3/tutorial/store-test/pom.xml | 201 --------------------- .../store-test/test/StoreSupplierTestCase.java | 89 --------- 4 files changed, 346 deletions(-) delete mode 100644 tags/java/sca/1.3/tutorial/store-test/META-INF/sca-contribution.xml delete mode 100644 tags/java/sca/1.3/tutorial/store-test/client/Shopper.java delete mode 100644 tags/java/sca/1.3/tutorial/store-test/pom.xml delete mode 100644 tags/java/sca/1.3/tutorial/store-test/test/StoreSupplierTestCase.java (limited to 'tags/java/sca/1.3/tutorial/store-test') diff --git a/tags/java/sca/1.3/tutorial/store-test/META-INF/sca-contribution.xml b/tags/java/sca/1.3/tutorial/store-test/META-INF/sca-contribution.xml deleted file mode 100644 index a75087aca1..0000000000 --- a/tags/java/sca/1.3/tutorial/store-test/META-INF/sca-contribution.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.3/tutorial/store-test/client/Shopper.java b/tags/java/sca/1.3/tutorial/store-test/client/Shopper.java deleted file mode 100644 index f8643d4c52..0000000000 --- a/tags/java/sca/1.3/tutorial/store-test/client/Shopper.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package client; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Shopper { - - String shop(String itemName, int quantity); - -} diff --git a/tags/java/sca/1.3/tutorial/store-test/pom.xml b/tags/java/sca/1.3/tutorial/store-test/pom.xml deleted file mode 100644 index 5c26a10b29..0000000000 --- a/tags/java/sca/1.3/tutorial/store-test/pom.xml +++ /dev/null @@ -1,201 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3 - ../pom.xml - - tutorial-store-test - Apache Tuscany SCA Tutorial Integration Test - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.3 - - - - org.apache.tuscany.sca - tuscany-data-api - 1.3 - - - - org.apache.tuscany.sca - tuscany-node2-launcher - 1.3 - - - - org.apache.tuscany.sca - tuscany-node2-api - 1.3 - - - - org.apache.tuscany.sca - tuscany-domain-manager - 1.3 - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-node-runtime - 1.3 - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.3 - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-widget-runtime - 1.3 - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-resource-runtime - 1.3 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-atom-abdera - 1.3 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - 1.3 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-http-runtime - 1.3 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.3 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-sca-axis2 - 1.3 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ejb-runtime - 1.3 - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-ejb - 1.3 - runtime - - - - org.apache.derby - derby - 10.3.1.4 - runtime - - - - junit - junit - 4.2 - test - - - - org.apache.tuscany.sca - tutorial-store-supplier - 1.3 - runtime - - - - - - ${artifactId} - ${basedir} - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - - - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.3 - - - - generate - - - - - - - - diff --git a/tags/java/sca/1.3/tutorial/store-test/test/StoreSupplierTestCase.java b/tags/java/sca/1.3/tutorial/store-test/test/StoreSupplierTestCase.java deleted file mode 100644 index a7cb97ccc2..0000000000 --- a/tags/java/sca/1.3/tutorial/store-test/test/StoreSupplierTestCase.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package test; - -import junit.framework.Assert; -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCANode2; -import org.apache.tuscany.sca.node.launcher.DomainManagerLauncher; -import org.apache.tuscany.sca.node.launcher.NodeLauncher; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import client.Shopper; - - -/** - * Test the store-merger. - * - * @version $Rev$ $Date$ - */ -public class StoreSupplierTestCase { - - private SCANode2 domainManager; - private SCANode2 storeSupplierNode; - private SCANode2 storeCatalogsNode; - private SCANode2 storeClientNode; - - @Before - public void setup() throws Exception { - String baseDir = System.getProperty("basedir"); - String domainDir = baseDir != null? baseDir + "/" + "../domain" : "../domain"; - - DomainManagerLauncher managerLauncher = DomainManagerLauncher.newInstance(); - domainManager = managerLauncher.createDomainManager(domainDir); - domainManager.start(); - - NodeLauncher nodeLauncher = NodeLauncher.newInstance(); - storeSupplierNode = nodeLauncher.createNode("http://localhost:9990/node-config/StoreSupplierNode"); - storeSupplierNode.start(); - - storeCatalogsNode = nodeLauncher.createNode("http://localhost:9990/node-config/CatalogsNode"); - storeCatalogsNode.start(); - - storeClientNode = nodeLauncher.createNode("http://localhost:9990/node-config/StoreClientNode"); - storeClientNode.start(); - - } - - @After - public void tearDown() throws Exception { - storeSupplierNode.stop(); - storeCatalogsNode.stop(); - storeClientNode.stop(); - domainManager.stop(); - } - - @Test - public void testShop() { - SCAClient client = (SCAClient)storeClientNode; - Shopper shopper = client.getService(Shopper.class, "StoreClient"); - - String total = shopper.shop("Orange", 5); - System.out.println("Total: " + total); - - Assert.assertEquals("$17.75", total); - - } - -} -- cgit v1.2.3