You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2008/06/13 14:32:44 UTC
svn commit: r667504 - in /incubator/tuscany/java/sca/itest/recursive-ws/src:
main/resources/bindingoverride/ test/java/bindingoverride/
Author: slaws
Date: Fri Jun 13 05:32:44 2008
New Revision: 667504
URL: http://svn.apache.org/viewvc?rev=667504&view=rev
Log:
TUSCANY-2352 - A binding override test. Disabled at the moment.
Added:
incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/
incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/InnerComposite.composite (with props)
incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/OuterComposite.composite (with props)
incubator/tuscany/java/sca/itest/recursive-ws/src/test/java/bindingoverride/
incubator/tuscany/java/sca/itest/recursive-ws/src/test/java/bindingoverride/BindingOverrideTestCase.java (with props)
Added: incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/InnerComposite.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/InnerComposite.composite?rev=667504&view=auto
==============================================================================
--- incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/InnerComposite.composite (added)
+++ incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/InnerComposite.composite Fri Jun 13 05:32:44 2008
@@ -0,0 +1,36 @@
+<?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"
+ targetNamespace="http://bindingoverride"
+ xmlns:bindingoverride="http://bindingoverride"
+ name="BindingOverrideInnerComposite">
+
+ <service name="InnerService" promote="InnerServiceComponent">
+ <interface.java interface="policy.Target"/>
+ </service>
+
+ <component name="InnerServiceComponent">
+ <implementation.java class="policy.TargetServiceImpl"/>
+ <service name="Target">
+ <interface.java interface="policy.Target"/>
+ </service>
+ </component>
+
+</composite>
Propchange: incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/InnerComposite.composite
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/InnerComposite.composite
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/InnerComposite.composite
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/OuterComposite.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/OuterComposite.composite?rev=667504&view=auto
==============================================================================
--- incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/OuterComposite.composite (added)
+++ incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/OuterComposite.composite Fri Jun 13 05:32:44 2008
@@ -0,0 +1,40 @@
+<?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"
+ targetNamespace="http://bindingoverride"
+ xmlns:bindingoverride="http://bindingoverride"
+ name="BindingOverrideOuterComposite">
+
+ <component name="OuterClientComponent">
+ <implementation.java class="policy.TargetClientImpl"/>
+ <reference name="targetService" target="OuterServiceComponent">
+ <binding.ws/>
+ </reference>
+ </component>
+
+ <component name="OuterServiceComponent">
+ <implementation.composite name="bindingoverride:BindingOverrideInnerComposite"/>
+ <service name="InnerService">
+ <interface.java interface="policy.Target"/>
+ <binding.ws uri="http://localhost:8085/OuterTargetServiceComponent"/>
+ </service>
+ </component>
+
+</composite>
Propchange: incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/OuterComposite.composite
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/OuterComposite.composite
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/tuscany/java/sca/itest/recursive-ws/src/main/resources/bindingoverride/OuterComposite.composite
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/tuscany/java/sca/itest/recursive-ws/src/test/java/bindingoverride/BindingOverrideTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/recursive-ws/src/test/java/bindingoverride/BindingOverrideTestCase.java?rev=667504&view=auto
==============================================================================
--- incubator/tuscany/java/sca/itest/recursive-ws/src/test/java/bindingoverride/BindingOverrideTestCase.java (added)
+++ incubator/tuscany/java/sca/itest/recursive-ws/src/test/java/bindingoverride/BindingOverrideTestCase.java Fri Jun 13 05:32:44 2008
@@ -0,0 +1,57 @@
+/*
+ * 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 bindingoverride;
+
+import junit.framework.Assert;
+
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Ignore;
+import org.junit.Test;
+
+import policy.Target;
+
+public class BindingOverrideTestCase{
+
+ private SCADomain domain;
+ private Target targetClient;
+
+ @Before
+ public void setUp() throws Exception {
+ try {
+ domain = SCADomain.newInstance("bindingoverride/OuterComposite.composite");
+ targetClient = domain.getService(Target.class, "OuterClientComponent");
+ } catch(Exception ex) {
+ System.out.println(ex.toString());
+ }
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ domain.close();
+ }
+
+ @Test
+ @Ignore("TUSCANY-2352")
+ public void test() throws Exception {
+ Assert.assertEquals("Target: Hello Target: Hello Fred!!", targetClient.hello("Fred"));
+ }
+}
Propchange: incubator/tuscany/java/sca/itest/recursive-ws/src/test/java/bindingoverride/BindingOverrideTestCase.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/itest/recursive-ws/src/test/java/bindingoverride/BindingOverrideTestCase.java
------------------------------------------------------------------------------
svn:keywords = Rev Date