summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-python
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-04-07 23:00:52 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-04-07 23:00:52 +0000
commit74bfa87f0c8aa5071cb60e133737e61304017148 (patch)
treeddad3fcd44853901aa7fc257a2ba0599529369f2 /sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-python
parent080ab0647e8cf967b99ab19426e50c7612b9126b (diff)
Ensure all variations of PaymentTestCase throw exceptions when they fail (TUSCANY-3407)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@931718 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-python')
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-python/src/test/java/scatours/payment/PaymentTestCase.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-python/src/test/java/scatours/payment/PaymentTestCase.java b/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-python/src/test/java/scatours/payment/PaymentTestCase.java
index 66f393b275..f55f8c7c75 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-python/src/test/java/scatours/payment/PaymentTestCase.java
+++ b/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-python/src/test/java/scatours/payment/PaymentTestCase.java
@@ -69,7 +69,11 @@ public class PaymentTestCase {
public void testPayment() {
SCAClient client = (SCAClient)paymentNode;
Payment payment = client.getService(Payment.class, "PaymentClient");
- System.out.println("Result = " + payment.makePaymentMember("Fred", 100.00f));
+ String result = payment.makePaymentMember("Fred", 100.00f);
+ System.out.println("Result = " + result);
+ if (!"Success".equals(result)) {
+ throw new RuntimeException(result);
+ }
}
@AfterClass