summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/shared-contributions/payment-java-contribution/src/test
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-02-28 00:19:32 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-02-28 00:19:32 +0000
commitc0820807441e7eada782a13741fbe2a273554a32 (patch)
treef690e0e75d5ba53b11e7dd06aa5d787507622052 /sandbox/travelsample/shared-contributions/payment-java-contribution/src/test
parent572f63e1887a382d33bea739eebad977bce8ffaa (diff)
Add a fine-grained payment assembly for java
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@748759 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sandbox/travelsample/shared-contributions/payment-java-contribution/src/test/java/payment/PaymentTestCase.java2
-rw-r--r--sandbox/travelsample/shared-contributions/payment-java-contribution/src/test/resources/payment.composite12
2 files changed, 13 insertions, 1 deletions
diff --git a/sandbox/travelsample/shared-contributions/payment-java-contribution/src/test/java/payment/PaymentTestCase.java b/sandbox/travelsample/shared-contributions/payment-java-contribution/src/test/java/payment/PaymentTestCase.java
index 21bf6ff428..9acf17e5e6 100644
--- a/sandbox/travelsample/shared-contributions/payment-java-contribution/src/test/java/payment/PaymentTestCase.java
+++ b/sandbox/travelsample/shared-contributions/payment-java-contribution/src/test/java/payment/PaymentTestCase.java
@@ -46,7 +46,7 @@ public class PaymentTestCase {
public void testCreditCardPayment() {
SCAClient client = (SCAClient) node;
Payment payment = client.getService(Payment.class, "PaymentComponent");
- System.out.println(payment.makePaymentMember("Fred Bloggs", 100.00f));
+ System.out.println(payment.makePaymentMember("c-0", 100.00f));
}
@Test
diff --git a/sandbox/travelsample/shared-contributions/payment-java-contribution/src/test/resources/payment.composite b/sandbox/travelsample/shared-contributions/payment-java-contribution/src/test/resources/payment.composite
index 90665e86e0..00ea330e79 100644
--- a/sandbox/travelsample/shared-contributions/payment-java-contribution/src/test/resources/payment.composite
+++ b/sandbox/travelsample/shared-contributions/payment-java-contribution/src/test/resources/payment.composite
@@ -25,10 +25,22 @@
<component name="PaymentComponent">
<implementation.java class="payment.PaymentImpl" />
+ <reference name="customerRegistry" target="CustomerRegistryComponent"/>
<reference name="creditCardPayment" target="CreditCardPaymentComponent"/>
+ <reference name="emailGateway" target="EmailGatewayComponent"/>
+ <property name="transactionFeeRate">0.02</property>
</component>
+ <component name="CustomerRegistryComponent">
+ <implementation.java class="scatours.customer.CustomerRegistryImpl" />
+ </component>
+
+ <component name="EmailGatewayComponent">
+ <implementation.java class="scatours.emailgateway.EmailGatewayImpl" />
+ </component>
+
<component name="CreditCardPaymentComponent">
<implementation.java class="payment.creditcard.CreditCardPaymentImpl" />
</component>
+
</composite> \ No newline at end of file