diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-14 19:14:55 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-14 19:14:55 +0000 |
commit | 74fd56e437d7770c6165671e8efa33d49643fdc6 (patch) | |
tree | 8bf197ae9ebadd1f8afd9a205843690294aa86a2 /sandbox/travelsample/contributions/payment-bpel/src | |
parent | fc9368f667973e038383e34ab73a6879c6cf55d6 (diff) |
Apply new naming convention to the payment-bpel, payment-groovy and emailgateway contributions
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@814783 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sandbox/travelsample/contributions/payment-bpel/src/main/resources/CreditCardPayment.wsdl (renamed from sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/CreditCardPayment.wsdl) | 0 | ||||
-rw-r--r-- | sandbox/travelsample/contributions/payment-bpel/src/main/resources/EmailGateway.wsdl (renamed from sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/EmailGateway.wsdl) | 0 | ||||
-rw-r--r-- | sandbox/travelsample/contributions/payment-bpel/src/main/resources/META-INF/sca-contribution.xml (renamed from sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml) | 0 | ||||
-rw-r--r-- | sandbox/travelsample/contributions/payment-bpel/src/main/resources/Payment.wsdl (renamed from sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/Payment.wsdl) | 0 | ||||
-rw-r--r-- | sandbox/travelsample/contributions/payment-bpel/src/main/resources/payment.bpel (renamed from sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.bpel) | 0 | ||||
-rw-r--r-- | sandbox/travelsample/contributions/payment-bpel/src/main/resources/payment.composite (renamed from sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.composite) | 0 | ||||
-rw-r--r-- | sandbox/travelsample/contributions/payment-bpel/src/test/java/scatours/payment/PaymentTestCase.java (renamed from sandbox/travelsample/contributions/payment-bpel-contribution/src/test/java/scatours/payment/PaymentTestCase.java) | 37 | ||||
-rw-r--r-- | sandbox/travelsample/contributions/payment-bpel/src/test/java/scatours/payment/client/impl/PaymentClientImpl.java (renamed from sandbox/travelsample/contributions/payment-bpel-contribution/src/test/java/scatours/payment/client/PaymentClientImpl.java) | 74 | ||||
-rw-r--r-- | sandbox/travelsample/contributions/payment-bpel/src/test/resources/META-INF/sca-contribution.xml (renamed from sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/META-INF/sca-contribution.xml) | 9 | ||||
-rw-r--r-- | sandbox/travelsample/contributions/payment-bpel/src/test/resources/payment-client.composite (renamed from sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/payment-client.composite) | 2 |
10 files changed, 58 insertions, 64 deletions
diff --git a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/CreditCardPayment.wsdl b/sandbox/travelsample/contributions/payment-bpel/src/main/resources/CreditCardPayment.wsdl index 22ef6de317..22ef6de317 100644 --- a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/CreditCardPayment.wsdl +++ b/sandbox/travelsample/contributions/payment-bpel/src/main/resources/CreditCardPayment.wsdl diff --git a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/EmailGateway.wsdl b/sandbox/travelsample/contributions/payment-bpel/src/main/resources/EmailGateway.wsdl index a097d9b7e4..a097d9b7e4 100644 --- a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/EmailGateway.wsdl +++ b/sandbox/travelsample/contributions/payment-bpel/src/main/resources/EmailGateway.wsdl diff --git a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml b/sandbox/travelsample/contributions/payment-bpel/src/main/resources/META-INF/sca-contribution.xml index b458868b09..b458868b09 100644 --- a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml +++ b/sandbox/travelsample/contributions/payment-bpel/src/main/resources/META-INF/sca-contribution.xml diff --git a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/Payment.wsdl b/sandbox/travelsample/contributions/payment-bpel/src/main/resources/Payment.wsdl index e2c4062f2e..e2c4062f2e 100644 --- a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/Payment.wsdl +++ b/sandbox/travelsample/contributions/payment-bpel/src/main/resources/Payment.wsdl diff --git a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.bpel b/sandbox/travelsample/contributions/payment-bpel/src/main/resources/payment.bpel index 8f11d76888..8f11d76888 100644 --- a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.bpel +++ b/sandbox/travelsample/contributions/payment-bpel/src/main/resources/payment.bpel diff --git a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.composite b/sandbox/travelsample/contributions/payment-bpel/src/main/resources/payment.composite index 5c337799a7..5c337799a7 100644 --- a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.composite +++ b/sandbox/travelsample/contributions/payment-bpel/src/main/resources/payment.composite diff --git a/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/java/scatours/payment/PaymentTestCase.java b/sandbox/travelsample/contributions/payment-bpel/src/test/java/scatours/payment/PaymentTestCase.java index 1f6f5b69fa..76ef390d62 100644 --- a/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/java/scatours/payment/PaymentTestCase.java +++ b/sandbox/travelsample/contributions/payment-bpel/src/test/java/scatours/payment/PaymentTestCase.java @@ -19,6 +19,7 @@ package scatours.payment; +import com.tuscanyscatours.payment.Payment; import org.apache.tuscany.sca.node.SCAClient; import org.apache.tuscany.sca.node.SCAContribution; import org.apache.tuscany.sca.node.SCANode; @@ -37,28 +38,22 @@ public class PaymentTestCase { @BeforeClass public static void setUpBeforeClass() throws Exception { - try { - creditCardNode = SCANodeFactory.newInstance().createSCANode("creditcard.composite", - new SCAContribution("creditcard", "../creditcard-payment-jaxb/target/classes"), - new SCAContribution("creditcard-test", "../creditcard-payment-jaxb/target/test-classes")); - - creditCardNode.start(); - - emailGatewayNode = SCANodeFactory.newInstance().createSCANode("emailgateway.composite", - new SCAContribution("emailgateway", "../emailgateway-contribution/target/classes"), - new SCAContribution("emailgateway-test", "../emailgateway-contribution/target/test-classes")); - - emailGatewayNode.start(); - - paymentNode = SCANodeFactory.newInstance().createSCANode(null, - new SCAContribution("payment-bpel", "./target/classes"), - new SCAContribution("payment-bpel-test", "./target/test-classes")); - + creditCardNode = SCANodeFactory.newInstance().createSCANode("creditcard.composite", + new SCAContribution("creditcard", "../creditcard-payment-jaxb/target/classes")); + + creditCardNode.start(); + + emailGatewayNode = SCANodeFactory.newInstance().createSCANode("emailgateway.composite", + new SCAContribution("emailgateway", "../emailgateway/target/classes"), + new SCAContribution("emailgateway-test", "../emailgateway/target/test-classes")); + + emailGatewayNode.start(); + + paymentNode = SCANodeFactory.newInstance().createSCANode(null, + new SCAContribution("payment-bpel", "./target/classes"), + new SCAContribution("payment-bpel-test", "./target/test-classes")); - paymentNode.start(); - } catch (Exception ex) { - ex.printStackTrace(); - } + paymentNode.start(); } @Test diff --git a/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/java/scatours/payment/client/PaymentClientImpl.java b/sandbox/travelsample/contributions/payment-bpel/src/test/java/scatours/payment/client/impl/PaymentClientImpl.java index eaa7498e84..a38ba51ac5 100644 --- a/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/java/scatours/payment/client/PaymentClientImpl.java +++ b/sandbox/travelsample/contributions/payment-bpel/src/test/java/scatours/payment/client/impl/PaymentClientImpl.java @@ -1,37 +1,37 @@ -/* - * 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 scatours.payment.client; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import scatours.payment.Payment; - -@Service(Payment.class) -public class PaymentClientImpl implements Payment { - @Reference - protected Payment payment; - - public String makePaymentMember(String customerId, float amount) { - // Delegate the external web service - return payment.makePaymentMember(customerId, amount); - } - -} +/*
+ * 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 scatours.payment.client.impl;
+
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Service;
+
+import com.tuscanyscatours.payment.Payment;
+
+@Service(Payment.class)
+public class PaymentClientImpl implements Payment {
+ @Reference
+ protected Payment payment;
+
+ public String makePaymentMember(String customerId, float amount) {
+ // Delegate the external web service
+ return payment.makePaymentMember(customerId, amount);
+ }
+
+}
diff --git a/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/META-INF/sca-contribution.xml b/sandbox/travelsample/contributions/payment-bpel/src/test/resources/META-INF/sca-contribution.xml index 86dd694fa9..fcfc2d7c61 100644 --- a/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/META-INF/sca-contribution.xml +++ b/sandbox/travelsample/contributions/payment-bpel/src/test/resources/META-INF/sca-contribution.xml @@ -18,8 +18,7 @@ * under the License. --> <contribution xmlns="http://www.osoa.org/xmlns/sca/1.0" - xmlns:pp="http://www.tuscanyscatours.com/Payment" > - <import namespace="http://www.tuscanyscatours.com/Payment"/> - <import namespace="http://www.tuscanyscatours.com/Payment/"/> - <deployable composite="pp:paymentClient" /> -</contribution>
\ No newline at end of file + xmlns:pp="http://www.tuscanyscatours.com/Payment"> + <import.java package="com.tuscanyscatours.payment" /> + <deployable composite="pp:paymentClient" /> +</contribution> diff --git a/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/payment-client.composite b/sandbox/travelsample/contributions/payment-bpel/src/test/resources/payment-client.composite index 75001d947b..a5110aacff 100644 --- a/sandbox/travelsample/contributions/payment-bpel-contribution/src/test/resources/payment-client.composite +++ b/sandbox/travelsample/contributions/payment-bpel/src/test/resources/payment-client.composite @@ -24,7 +24,7 @@ name="paymentClient"> <component name="PaymentClient"> - <implementation.java class="scatours.payment.client.PaymentClientImpl" /> + <implementation.java class="scatours.payment.client.impl.PaymentClientImpl" /> <reference name="payment"> <binding.ws uri="http://localhost:8080/Payment" /> </reference> |