summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring
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-spring
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-spring')
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/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-spring/src/test/java/scatours/payment/PaymentTestCase.java b/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/test/java/scatours/payment/PaymentTestCase.java
index 8723c05624..e1634c95f9 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/test/java/scatours/payment/PaymentTestCase.java
+++ b/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/test/java/scatours/payment/PaymentTestCase.java
@@ -58,7 +58,11 @@ public class PaymentTestCase {
public void testPayment() {
SCAClient client = (SCAClient)paymentNode;
Payment payment = client.getService(Payment.class, "PaymentClient");
- System.out.println("Result = " + payment.makePaymentMember("c-0", 100.00f));
+ String result = payment.makePaymentMember("c-0", 100.00f);
+ System.out.println("Result = " + result);
+ if (!"OK".equals(result)) {
+ throw new RuntimeException(result);
+ }
}
@AfterClass