summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/contributions/introducing-client-contribution
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-05-17 15:23:10 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-05-17 15:23:10 +0000
commit8c750d3140ad9cfd8b7af778c50fbbf526a6d198 (patch)
treea584be48bea5eb7c6cfab8824c993fc006194c45 /sandbox/travelsample/contributions/introducing-client-contribution
parent25bc47ea8f541b5ecf2b864ab41d40d116b1afd7 (diff)
Add a little more function to the simple travel booking sample and simplify the command line launcher contribution configuration.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@775672 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/contributions/introducing-client-contribution')
-rw-r--r--sandbox/travelsample/contributions/introducing-client-contribution/src/main/java/scatours/client/TestClient.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/sandbox/travelsample/contributions/introducing-client-contribution/src/main/java/scatours/client/TestClient.java b/sandbox/travelsample/contributions/introducing-client-contribution/src/main/java/scatours/client/TestClient.java
index cb80368918..64a1487f72 100644
--- a/sandbox/travelsample/contributions/introducing-client-contribution/src/main/java/scatours/client/TestClient.java
+++ b/sandbox/travelsample/contributions/introducing-client-contribution/src/main/java/scatours/client/TestClient.java
@@ -19,6 +19,8 @@
package scatours.client;
+import java.math.BigDecimal;
+
import com.tuscanyscatours.Bookings;
import com.tuscanyscatours.Checkout;
@@ -40,7 +42,6 @@ public class TestClient {
String bookingCode = bookings.newBooking("FS1APR4", 1);
System.out.println("Booking code is " + bookingCode);
- checkout.makePayment(1995.00, "1234567843218765 10/10");
- System.out.println("Paid $1995.00");
+ checkout.makePayment(new BigDecimal("1995.00"), "1234567843218765 10/10");
}
}