diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-08 14:22:21 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-08 14:22:21 +0000 |
commit | eb86a871567d9a370eb63ae1f4689e389ee99584 (patch) | |
tree | f9d4a969aa9d9366456247911e7438a3b827a0c3 /sandbox/travelsample/payment-contribution/test/payment/creditcard/CreditCardPaymentTestCase.java | |
parent | bbda2f487281f9eb119900a675db721a24b2a0be (diff) |
The BPEL payment process now successfully calls the payment service
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@724355 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/payment-contribution/test/payment/creditcard/CreditCardPaymentTestCase.java')
-rw-r--r-- | sandbox/travelsample/payment-contribution/test/payment/creditcard/CreditCardPaymentTestCase.java | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/sandbox/travelsample/payment-contribution/test/payment/creditcard/CreditCardPaymentTestCase.java b/sandbox/travelsample/payment-contribution/test/payment/creditcard/CreditCardPaymentTestCase.java index a43bcbbf17..ac5af4e547 100644 --- a/sandbox/travelsample/payment-contribution/test/payment/creditcard/CreditCardPaymentTestCase.java +++ b/sandbox/travelsample/payment-contribution/test/payment/creditcard/CreditCardPaymentTestCase.java @@ -45,11 +45,27 @@ public class CreditCardPaymentTestCase { @Test public void testCreditCardPayment() { SCAClient client = (SCAClient) node; - CreditCardPayment cc = client.getService(CreditCardPayment.class, "CreditCardPayment"); + CreditCardPayment cc = client.getService(CreditCardPayment.class, "CreditCardPaymentWSClient"); + ObjectFactory objectFactory = new ObjectFactory(); CreditCardDetailsType ccDetails = objectFactory.createCreditCardDetailsType(); + ccDetails.setCreditCardType(CreditCardTypeType.fromValue("Visa")); + PayerType ccOwner = objectFactory.createPayerType(); + ccOwner.setName("Fred"); + ccDetails.setCardOwner(ccOwner); + System.out.println(cc.authorize(ccDetails, 100.00f)); } + + @Test + public void testWaitForInput() { + System.out.println("Press a key to end"); + try { + System.in.read(); + } catch (Exception ex) { + } + System.out.println("Shutting down"); + } /** * @throws java.lang.Exception |