diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-04-07 23:00:52 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-04-07 23:00:52 +0000 |
commit | 74bfa87f0c8aa5071cb60e133737e61304017148 (patch) | |
tree | ddad3fcd44853901aa7fc257a2ba0599529369f2 /sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/src/test/java/scatours/payment | |
parent | 080ab0647e8cf967b99ab19426e50c7612b9126b (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-groovy/src/test/java/scatours/payment')
-rw-r--r-- | sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/src/test/java/scatours/payment/PaymentTestCase.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/src/test/java/scatours/payment/PaymentTestCase.java b/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/src/test/java/scatours/payment/PaymentTestCase.java index 907bcc93f8..1eb611e5b3 100644 --- a/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/src/test/java/scatours/payment/PaymentTestCase.java +++ b/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/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
|