diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-09-20 10:52:34 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-09-20 10:52:34 +0000 |
commit | b14ca8bfe8c97e2269296e92b28f90c84c466218 (patch) | |
tree | ebd8015bad4db2131835615e2eacafc59bf406ca /sca-java-2.x/trunk/testing/itest/callback-two-nodes | |
parent | 201ec14d965064ebb0297b37ff277f0ba42f38b1 (diff) |
Add a test using distributed domain nodes and the sca binding delegating to the ws binding, with @Ignore for now as this combination doesn't work
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1173080 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/testing/itest/callback-two-nodes')
-rw-r--r-- | sca-java-2.x/trunk/testing/itest/callback-two-nodes/src/test/java/org/apache/tuscany/sca/test/CallBackTwoNodesHzTestCase.java | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/callback-two-nodes/src/test/java/org/apache/tuscany/sca/test/CallBackTwoNodesHzTestCase.java b/sca-java-2.x/trunk/testing/itest/callback-two-nodes/src/test/java/org/apache/tuscany/sca/test/CallBackTwoNodesHzTestCase.java new file mode 100644 index 0000000000..c611bdd401 --- /dev/null +++ b/sca-java-2.x/trunk/testing/itest/callback-two-nodes/src/test/java/org/apache/tuscany/sca/test/CallBackTwoNodesHzTestCase.java @@ -0,0 +1,58 @@ +/*
+ * 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 java.net.URI;
+
+import org.apache.tuscany.sca.TuscanyRuntime;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Ignore;
+import org.junit.Test;
+import org.oasisopen.sca.NoSuchServiceException;
+
+@Ignore
+public class CallBackTwoNodesHzTestCase {
+
+ private org.apache.tuscany.sca.Node serviceNode;
+ private org.apache.tuscany.sca.Node clientNode;
+
+ @Before
+ public void setUp() throws Exception {
+
+ System.setProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding", "http://docs.oasis-open.org/ns/opencsa/sca/200912#binding.ws");
+
+ serviceNode = TuscanyRuntime.runComposite(URI.create("uri:CallBackTwoNodesHzTestCase"), "CallBackService.composite", "target/classes");
+ clientNode = TuscanyRuntime.runComposite(URI.create("uri:CallBackTwoNodesHzTestCase"), "CallBackReference.composite", "target/classes");
+ }
+
+ @Test
+ public void testCallBackTwoNodes() throws NoSuchServiceException {
+ CallBackBasicClient aCallBackClient = clientNode.getService(CallBackBasicClient.class, "CallBackBasicClient");
+ aCallBackClient.run();
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ if (clientNode != null) clientNode.stop();
+ if (serviceNode != null) serviceNode.stop();
+ }
+
+}
|