diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-27 04:52:05 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-27 04:52:05 +0000 |
commit | 8a0d0fd710674914f2b2f0b256162af9e2db9c83 (patch) | |
tree | 88df17f8104e88b8431dffd0cf9b3ece63d674cf /sandbox/rfeng/scatours-creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentOSGiTestCase.java | |
parent | 3635a0ee6f59980439ec043f2251d950e4ffb8a4 (diff) |
Adding XML printout and refactoring a client
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@778997 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sandbox/rfeng/scatours-creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentOSGiTestCase.java | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sandbox/rfeng/scatours-creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentOSGiTestCase.java b/sandbox/rfeng/scatours-creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentOSGiTestCase.java index f981e31efa..bfc404635b 100644 --- a/sandbox/rfeng/scatours-creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentOSGiTestCase.java +++ b/sandbox/rfeng/scatours-creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentOSGiTestCase.java @@ -36,13 +36,6 @@ import org.osgi.framework.Bundle; import org.osgi.framework.BundleContext;
import org.osgi.framework.Constants;
-import scatours.payment.creditcard.CreditCardDetailsType;
-import scatours.payment.creditcard.CreditCardPayment;
-import scatours.payment.creditcard.CreditCardPaymentService;
-import scatours.payment.creditcard.CreditCardTypeType;
-import scatours.payment.creditcard.ObjectFactory;
-import scatours.payment.creditcard.PayerType;
-
/**
*
*/
@@ -116,15 +109,8 @@ public class CreditCardPaymentOSGiTestCase { */
@Test
public void testClient() {
- CreditCardPaymentService service = new CreditCardPaymentService();
- ObjectFactory objectFactory = new ObjectFactory();
- CreditCardDetailsType ccDetails = objectFactory.createCreditCardDetailsType();
- ccDetails.setCreditCardType(CreditCardTypeType.fromValue("Visa"));
- PayerType ccOwner = objectFactory.createPayerType();
- ccOwner.setName("Fred");
- ccDetails.setCardOwner(ccOwner);
- CreditCardPayment cc = service.getCreditCardPaymentPort();
- System.out.println(cc.authorize(ccDetails, 100.00f));
+ String status = CreditCardPaymentClient.invoke();
+ Assert.assertTrue(status.startsWith("SUCCESS"));
}
/**
|