You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2011/09/20 12:52:34 UTC

svn commit: r1173080 - /tuscany/sca-java-2.x/trunk/testing/itest/callback-two-nodes/src/test/java/org/apache/tuscany/sca/test/CallBackTwoNodesHzTestCase.java

Author: antelder
Date: Tue Sep 20 10:52:34 2011
New Revision: 1173080

URL: http://svn.apache.org/viewvc?rev=1173080&view=rev
Log:
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

Added:
    tuscany/sca-java-2.x/trunk/testing/itest/callback-two-nodes/src/test/java/org/apache/tuscany/sca/test/CallBackTwoNodesHzTestCase.java

Added: tuscany/sca-java-2.x/trunk/testing/itest/callback-two-nodes/src/test/java/org/apache/tuscany/sca/test/CallBackTwoNodesHzTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/testing/itest/callback-two-nodes/src/test/java/org/apache/tuscany/sca/test/CallBackTwoNodesHzTestCase.java?rev=1173080&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/testing/itest/callback-two-nodes/src/test/java/org/apache/tuscany/sca/test/CallBackTwoNodesHzTestCase.java (added)
+++ tuscany/sca-java-2.x/trunk/testing/itest/callback-two-nodes/src/test/java/org/apache/tuscany/sca/test/CallBackTwoNodesHzTestCase.java Tue Sep 20 10:52:34 2011
@@ -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();
+    }
+
+}