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 2007/02/28 15:41:51 UTC
svn commit: r512772 - in
/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src:
main/resources/ test/java/helloworld/ test/java/org/apache/tuscany/sca/itest/
Author: antelder
Date: Wed Feb 28 06:41:50 2007
New Revision: 512772
URL: http://svn.apache.org/viewvc?view=rev&rev=512772
Log:
Start getting some ws binding tests running
Added:
incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/helloworldws.composite
incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/helloworld/
incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/HelloWorldServerTestCase.java (with props)
incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/WSReferencesTestCase.java (with props)
Removed:
incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/WSBindingTestCase.java
Modified:
incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/WSBindingTest.composite
Modified: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/WSBindingTest.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/WSBindingTest.composite?view=diff&rev=512772&r1=512771&r2=512772
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/WSBindingTest.composite (original)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/WSBindingTest.composite Wed Feb 28 06:41:50 2007
@@ -22,17 +22,17 @@
name="WSBindingTest">
- <component name="Client1b2b3b4b">
+ <component name="HelloworldClientOld">
<implementation.java class="helloworld.HelloWorldServiceComponent"/>
- <reference name="helloWorldService">ClientRef1b2b3b4b</reference>
+ <reference name="helloWorldService">HelloworldClientOldRef</reference>
</component>
- <reference name="ClientRef1b2b3b4b">
+ <reference name="HelloworldClientOldRef">
<interface.wsdl xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
interface="http://helloworld#wsdl.interface(HelloWorld)"
wsdli:wsdlLocation="http://helloworld wsdl/helloworld.wsdl" />
<binding.ws endpoint="http://helloworld#wsdl.endpoint(HelloWorldService/HelloWorldSoapPort)"
- location="wsdl/helloworldC1b2b3b4b.wsdl" />
+ location="wsdl/helloworld.wsdl" />
</reference>
</composite>
Added: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/helloworldws.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/helloworldws.composite?view=auto&rev=512772
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/helloworldws.composite (added)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/helloworldws.composite Wed Feb 28 06:41:50 2007
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
+ name="helloworldws">
+
+ <service name="HelloWorldWebService">
+ <interface.java class="helloworld.HelloWorldService" />
+ <!-- interface.wsdl interface="http://helloworld#wsdl.interface(HelloWorld)" wsdli:wsdlLocation="http://helloworld wsdl/helloworld.wsdl" / -->
+ <binding.ws endpoint="http://helloworld#wsdl.endpoint(HelloWorldService/HelloWorldSoapPort)" location="wsdl/helloworld.wsdl" />
+ <reference>HelloWorldServiceComponent</reference>
+ </service>
+
+ <component name="HelloWorldServiceComponent">
+ <implementation.java class="helloworld.HelloWorldImpl" />
+ </component>
+
+</composite>
Added: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/HelloWorldServerTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/HelloWorldServerTestCase.java?view=auto&rev=512772
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/HelloWorldServerTestCase.java (added)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/HelloWorldServerTestCase.java Wed Feb 28 06:41:50 2007
@@ -0,0 +1,26 @@
+package org.apache.tuscany.sca.itest;
+
+
+import java.io.IOException;
+import java.net.Socket;
+
+import org.apache.tuscany.test.SCATestCase;
+
+public class HelloWorldServerTestCase extends SCATestCase {
+
+ @Override
+ protected void setUp() throws Exception {
+ setApplicationSCDL("helloworldws.composite");
+ super.setUp();
+ }
+
+ public void testPing() throws IOException, InterruptedException {
+ new Socket("127.0.0.1", 8080);
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ }
+
+}
Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/HelloWorldServerTestCase.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/HelloWorldServerTestCase.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/WSReferencesTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/WSReferencesTestCase.java?view=auto&rev=512772
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/WSReferencesTestCase.java (added)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/WSReferencesTestCase.java Wed Feb 28 06:41:50 2007
@@ -0,0 +1,44 @@
+package org.apache.tuscany.sca.itest;
+
+
+import helloworld.HelloWorldService;
+import junit.framework.Assert;
+
+import org.apache.tuscany.test.SCATestCase;
+import org.apache.tuscany.test.SCATestCaseRunner;
+import org.osoa.sca.CompositeContext;
+import org.osoa.sca.CurrentCompositeContext;
+
+/**
+ * Test case for binding.ws references
+ */
+@SuppressWarnings("deprecation")
+public class WSReferencesTestCase extends SCATestCase {
+
+ private SCATestCaseRunner server;
+ private CompositeContext compositeContext;
+
+ @Override
+ protected void setUp() throws Exception {
+ setApplicationSCDL("WSBindingTest.composite");
+ super.setUp();
+
+ compositeContext = CurrentCompositeContext.getContext();
+
+ server = new SCATestCaseRunner(HelloWorldServerTestCase.class);
+ server.setUp();
+ }
+
+ public void testWSClient() throws Exception {
+ HelloWorldService helloWorldService = compositeContext.locateService(HelloWorldService.class, "HelloworldClientOld");
+ String msg = helloWorldService.getGreetings("Petra");
+ Assert.assertEquals("Hi Petra", msg);
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ server.tearDown();
+ }
+
+}
Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/WSReferencesTestCase.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/WSReferencesTestCase.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org