summaryrefslogtreecommitdiffstats
path: root/sandbox/lresende/sca/itest/callback/src/test/java/org/apache/tuscany
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-01-28 18:17:33 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-01-28 18:17:33 +0000
commitbfae31cd2d8c1f0917aac360ce5ae175a1878141 (patch)
tree95f55a937523ea7d8c32e6f03e52f1e15966d144 /sandbox/lresende/sca/itest/callback/src/test/java/org/apache/tuscany
parentef41dc12b614ddbed91eda6fd655c7515d70f0f5 (diff)
Investigating conversation/oneway issue reported by Douglas on the dev list
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@738573 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/lresende/sca/itest/callback/src/test/java/org/apache/tuscany')
-rw-r--r--sandbox/lresende/sca/itest/callback/src/test/java/org/apache/tuscany/sca/test/CallBackTestCase.java54
-rw-r--r--sandbox/lresende/sca/itest/callback/src/test/java/org/apache/tuscany/sca/test/MainCallback.java35
2 files changed, 89 insertions, 0 deletions
diff --git a/sandbox/lresende/sca/itest/callback/src/test/java/org/apache/tuscany/sca/test/CallBackTestCase.java b/sandbox/lresende/sca/itest/callback/src/test/java/org/apache/tuscany/sca/test/CallBackTestCase.java
new file mode 100644
index 0000000000..cd995952e3
--- /dev/null
+++ b/sandbox/lresende/sca/itest/callback/src/test/java/org/apache/tuscany/sca/test/CallBackTestCase.java
@@ -0,0 +1,54 @@
+/*
+ * 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 org.apache.tuscany.sca.test;
+
+import junit.framework.TestCase;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+public class CallBackTestCase extends TestCase {
+
+ private static SCADomain domain;
+ private Client callbackClient;
+
+ public void testCallBackBasic() {
+ callbackClient.someClientMethod();
+ }
+
+ /**
+ * This function creates the SCADomain instance and gets an Instance of CallBackApiClient.class
+ */
+ @Override
+ protected void setUp() throws Exception {
+ if (domain == null) {
+ domain = SCADomain.newInstance("callback.composite");
+ }
+
+ callbackClient = domain.getService(Client.class, "Consumer/Client");
+ }
+
+ /**
+ * This function destroys the SCADomain instance that was created in setUp()
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ domain.close();
+ }
+
+}
diff --git a/sandbox/lresende/sca/itest/callback/src/test/java/org/apache/tuscany/sca/test/MainCallback.java b/sandbox/lresende/sca/itest/callback/src/test/java/org/apache/tuscany/sca/test/MainCallback.java
new file mode 100644
index 0000000000..1754e6b3d5
--- /dev/null
+++ b/sandbox/lresende/sca/itest/callback/src/test/java/org/apache/tuscany/sca/test/MainCallback.java
@@ -0,0 +1,35 @@
+/*
+ * 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 org.apache.tuscany.sca.test;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+
+public class MainCallback {
+
+ public static void main(String... args) {
+ SCADomain scaDomain = SCADomain.newInstance("callback.composite");
+
+ Client client = scaDomain.getService(Client.class, "Consumer");
+ client.someClientMethod();
+
+ //scaDomain.close();
+ }
+
+}