summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/contributions/policy-client/src/main/java/scatours
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-08-29 18:16:03 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-08-29 18:16:03 +0000
commit8f7626cea88fb946a6c6395a2719126876ef0cb0 (patch)
tree4b629ff7f554729d458a8c0fefc26f768f47b336 /sandbox/travelsample/contributions/policy-client/src/main/java/scatours
parent52e8c33d6a08a46019f65724147e6136d34a9475 (diff)
A client composite to drive policy samples
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@809184 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/contributions/policy-client/src/main/java/scatours')
-rw-r--r--sandbox/travelsample/contributions/policy-client/src/main/java/scatours/client/TestClient.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/sandbox/travelsample/contributions/policy-client/src/main/java/scatours/client/TestClient.java b/sandbox/travelsample/contributions/policy-client/src/main/java/scatours/client/TestClient.java
new file mode 100644
index 0000000000..bb7cf0bdb0
--- /dev/null
+++ b/sandbox/travelsample/contributions/policy-client/src/main/java/scatours/client/TestClient.java
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package scatours.client;
+
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Service;
+
+import com.tuscanyscatours.payment.Payment;
+
+@Service(Runnable.class)
+public class TestClient {
+ @Reference
+ protected Payment payment;
+
+ public TestClient() {
+ }
+
+ public void run() {
+ System.out.println("TestClient - Successful Payment - Status = " + payment.makePaymentMember("c-0", 100.00f));
+ }
+}