diff options
Diffstat (limited to 'sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-reference-pass')
-rw-r--r-- | sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-reference-pass/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-java-reference-pass/src/test/java/scatours/payment/PaymentTestCase.java b/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-reference-pass/src/test/java/scatours/payment/PaymentTestCase.java index 2498bd74c8..52a1469da7 100644 --- a/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-reference-pass/src/test/java/scatours/payment/PaymentTestCase.java +++ b/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-reference-pass/src/test/java/scatours/payment/PaymentTestCase.java @@ -48,7 +48,11 @@ public class PaymentTestCase { Payment payment = client.getService(Payment.class, "Payment"); System.out.println("==================================================="); - System.out.println("\n\nPayment - Status = \n\n" + payment.makePaymentMember("c-0", 100.00f)); + String result = payment.makePaymentMember("c-0", 100.00f); + System.out.println("\n\nPayment - Status = \n\n" + result); + if (!"OK".equals(result)) { + throw new RuntimeException(result); + } System.out.println("==================================================="); } |