You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by be...@apache.org on 2009/03/11 17:02:30 UTC

svn commit: r752484 - in /tuscany/branches/sca-java-1.x/stest/sampleTest/src: main/java/test/ main/resources/ test/java/client/

Author: beckerdo
Date: Wed Mar 11 16:02:30 2009
New Revision: 752484

URL: http://svn.apache.org/viewvc?rev=752484&view=rev
Log:
TUSCANY-2907 Stest code

Added:
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/java/test/service1Impl5.java   (with props)
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite13.composite
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite14.composite
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite15.composite
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite16.composite
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite17.composite
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite18.composite
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestDuplicate1.composite
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestDuplicate2.composite
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0025.composite
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0026.composite
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0027.composite
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0028.composite
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0029.composite
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0030.composite
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0031.composite
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_Types.xsd   (with props)
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0025_TestCase.java   (with props)
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0026_TestCase.java   (with props)
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0027_TestCase.java   (with props)
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0028_TestCase.java   (with props)
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0029_TestCase.java   (with props)
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0030_TestCase.java   (with props)
    tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0031_TestCase.java   (with props)

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/java/test/service1Impl5.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/java/test/service1Impl5.java?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/java/test/service1Impl5.java (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/java/test/service1Impl5.java Wed Mar 11 16:02:30 2009
@@ -0,0 +1,45 @@
+/*
+ * 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 test;
+
+//import org.oasisopen.sca.annotation.*;
+import org.osoa.sca.annotations.*;
+
+/**
+ * Java component implementation for business interface Service1
+ * - no references
+ * - 3 properties
+ * @author MikeEdwards
+ *
+ */
+@Service(Service1.class)
+public class service1Impl5 implements Service1 {
+	
+	@Property
+	public String serviceName = "service1";
+	@Property
+	public String serviceData1;
+	@Property
+	public String serviceData2;
+
+	public String operation1(String input) {
+		return serviceName + " operation1 invoked" + serviceData1 + serviceData2;
+	}
+
+}

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/java/test/service1Impl5.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/java/test/service1Impl5.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite13.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite13.composite?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite13.composite (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite13.composite Wed Mar 11 16:02:30 2009
@@ -0,0 +1,46 @@
+<?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.    
+-->
+<!-- A simple composite which provides a single service and no references
+     plus a property with a complex type with a type which is an XSD global
+     element -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://oasis/tests"
+           xmlns:test="http://oasis/tests"
+           name="TestComposite13">
+           
+	<service name="Service1" promote="TestComponent1/Service1">
+		<interface.java interface="test.Service1"></interface.java>
+	</service>
+
+    <property name="serviceName" type="string"/>
+    
+    <property name="complexType" element="test:globalElement1"/>
+ 
+    <component name="TestComponent1">
+		<implementation.java class="test.service1Impl5"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"/>
+        </service>
+        <property name="serviceName" source="$serviceName"/>
+        <property name="serviceData1" source="$complexType/firstData"/>
+        <property name="serviceData2" source="$complexType/secondData"/>
+    </component>
+
+</composite>

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite14.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite14.composite?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite14.composite (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite14.composite Wed Mar 11 16:02:30 2009
@@ -0,0 +1,45 @@
+<?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.    
+-->
+<!-- A simple composite which provides a single service and no references
+     plus a property with a simple type -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://oasis/tests"
+           xmlns:test="http://oasis/tests"
+           name="TestComposite14">
+           
+	<service name="Service1" promote="TestComponent1/Service1">
+		<interface.java interface="test.Service1"></interface.java>
+	</service>
+
+    <property name="serviceName" type="string"/>
+    
+    <property name="simpleType" type="string"/>
+ 
+    <component name="TestComponent1">
+		<implementation.java class="test.service1Impl5"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"/>
+        </service>
+        <property name="serviceName" source="$serviceName"/>
+        <property name="serviceData1" source="$simpleType"/>
+        <property name="serviceData2" source="$simpleType"/>
+    </component>
+
+</composite>

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite15.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite15.composite?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite15.composite (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite15.composite Wed Mar 11 16:02:30 2009
@@ -0,0 +1,43 @@
+<?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.    
+-->
+<!-- A simple composite which provides a single service and no references,
+     where the service is configured with multiple explicit bindings -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://oasis/tests"
+           xmlns:sample="http://oasis/tests"
+           name="TestComposite15">
+           
+	<service name="Service1" promote="TestComponent1/Service1">
+		<interface.java interface="test.Service1"></interface.java>
+		<binding.sca/>
+		<binding.ws/>
+	</service>
+
+    <property name="serviceName" type="string"/>
+ 
+    <component name="TestComponent1">
+		<implementation.java class="test.service1Impl"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"></interface.java>
+        </service>
+        <property name="serviceName" source="$serviceName"/>
+    </component>
+
+</composite>

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite16.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite16.composite?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite16.composite (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite16.composite Wed Mar 11 16:02:30 2009
@@ -0,0 +1,48 @@
+<?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.    
+-->
+<!-- A composite which multiple <service/> subelements with the same name and no references -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://oasis/tests"
+           xmlns:sample="http://oasis/tests"
+           name="TestComposite16">
+           
+	<service name="Service1" promote="TestComponent1/Service1">
+		<interface.java interface="test.Service1"></interface.java>
+	</service>
+
+	<service name="Service1" promote="TestComponent1/Service1">
+		<interface.java interface="test.Service1"></interface.java>
+	</service>
+
+	<service name="Service2" promote="TestComponent1/Service1">
+		<interface.java interface="test.Service1"></interface.java>
+	</service>
+
+    <property name="serviceName" type="string"/>
+ 
+    <component name="TestComponent1">
+		<implementation.java class="test.service1Impl"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"></interface.java>
+        </service>
+        <property name="serviceName" source="$serviceName"/>
+    </component>
+
+</composite>

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite17.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite17.composite?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite17.composite (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite17.composite Wed Mar 11 16:02:30 2009
@@ -0,0 +1,46 @@
+<?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.    
+-->
+<!-- A composite which has a single service with a @promote attribute
+     that does not reference the <service/> of a <component/> within the
+     <composite/> and no references -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://oasis/tests"
+           xmlns:sample="http://oasis/tests"
+           name="TestComposite17">
+           
+	<service name="Service1" promote="TestComponent1/Service1">
+		<interface.java interface="test.Service1"></interface.java>
+	</service>
+	
+	<service name="Service2" promote="SpuriousComponent/SpuriousService">
+		<interface.java interface="test.Service1"></interface.java>
+	</service>
+
+    <property name="serviceName" type="string"/>
+ 
+    <component name="TestComponent1">
+		<implementation.java class="test.service1Impl"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"></interface.java>
+        </service>
+        <property name="serviceName" source="$serviceName"/>
+    </component>
+
+</composite>

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite18.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite18.composite?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite18.composite (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestComposite18.composite Wed Mar 11 16:02:30 2009
@@ -0,0 +1,42 @@
+<?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.    
+-->
+<!-- A composite which has a single service with a declared <interface/>
+     that is a compatible subset of the interface of the component service
+     declared in the @promote attribute -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://oasis/tests"
+           xmlns:sample="http://oasis/tests"
+           name="TestComposite18">
+           
+	<service name="Service1" promote="TestComponent1/Service1Superset">
+		<interface.java interface="test.Service1"></interface.java>
+	</service>
+	
+    <property name="serviceName" type="string"/>
+ 
+    <component name="TestComponent1">
+		<implementation.java class="test.service1SupersetImpl"/>
+        <service name="Service1Superset">
+        	<interface.java interface="test.Service1Superset"></interface.java>
+        </service>
+        <property name="serviceName" source="$serviceName"/>
+    </component>
+
+</composite>

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestDuplicate1.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestDuplicate1.composite?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestDuplicate1.composite (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestDuplicate1.composite Wed Mar 11 16:02:30 2009
@@ -0,0 +1,41 @@
+<?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.    
+-->
+<!-- 1st of a pair of composite files where the composites have duplicated
+     names and targetNamespaces -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://oasis/tests"
+           xmlns:sample="http://oasis/tests"
+           name="DuplicateComposite">
+           
+	<service name="Service1" promote="TestComponent1/Service1">
+		<interface.java interface="test.Service1"></interface.java>
+	</service>
+
+    <property name="serviceName" type="string"/>
+ 
+    <component name="TestComponent1">
+		<implementation.java class="test.service1Impl"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"></interface.java>
+        </service>
+        <property name="serviceName">duplicate1</property>
+    </component>
+
+</composite>

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestDuplicate2.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestDuplicate2.composite?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestDuplicate2.composite (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/TestDuplicate2.composite Wed Mar 11 16:02:30 2009
@@ -0,0 +1,41 @@
+<?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.    
+-->
+<!-- 2nd of a pair of composite files where the composites have duplicated
+     names and targetNamespaces -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://oasis/tests"
+           xmlns:sample="http://oasis/tests"
+           name="DuplicateComposite">
+           
+	<service name="Service1" promote="TestComponent1/Service1">
+		<interface.java interface="test.Service1"></interface.java>
+	</service>
+
+    <property name="serviceName" type="string"/>
+ 
+    <component name="TestComponent1">
+		<implementation.java class="test.service1Impl"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"></interface.java>
+        </service>
+        <property name="serviceName">duplicate2</property>
+    </component>
+
+</composite>

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0025.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0025.composite?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0025.composite (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0025.composite Wed Mar 11 16:02:30 2009
@@ -0,0 +1,61 @@
+<?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.    
+-->
+<!-- Tests that where a <component/> <property/> has its value set by means 
+     of a child <value/> element, that the type of the <value/> element matches 
+     the type declared for the <property/> element   -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://oasis/tests"
+           xmlns:tns="http://oasis/tests"
+           xmlns:test="http://oasis/tests"
+           name="TEST_ASM_0025">
+           
+    <component name="TestClient">
+		<implementation.composite name="tns:TestClient_0002"/>
+		<service name="TestInvocation">
+			<interface.java interface="test.TestInvocation"/>
+            <binding.ws/>
+		</service>
+        <reference name="reference1" target="TestComponent1/Service1" />
+        <property name="testName">ASM_0025</property>
+    </component>
+    
+    <component name="TestComponent1">
+		<implementation.composite name="tns:TestComposite12"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"/>
+        </service>
+        <property name="serviceName">service1</property>
+        <!-- Property with complex type with a value declared using a <value/> subelement -->
+        <property name="complexType" type="test:ComplexType1">
+          <ComplexType1Value type="test:ComplexType1">
+            	<test:firstData>complex1</test:firstData>
+            	<test:secondData>complex2</test:secondData>
+            </ComplexType1Value>
+            
+        <!--
+            <value>
+            	<firstData>complex1</firstData>
+            	<secondData>complex2</secondData>
+            </value>
+            -->
+        </property>
+    </component> 
+    
+</composite>

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0026.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0026.composite?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0026.composite (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0026.composite Wed Mar 11 16:02:30 2009
@@ -0,0 +1,57 @@
+<?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.    
+-->
+<!-- Tests that where a <component/> <property/> has its value set by means 
+     of a child element that is NOT a <value/> element, that a) the type of 
+     the <property/> element is declared as an XML Schema global element by 
+     its @element attribute and that the child element is an instance of that 
+     global element   -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://oasis/tests"
+           xmlns:tns="http://oasis/tests"
+           xmlns:test="http://oasis/tests"
+           name="TEST_ASM_0026">
+           
+    <component name="TestClient">
+		<implementation.composite name="tns:TestClient_0002"/>
+		<service name="TestInvocation">
+			<interface.java interface="test.TestInvocation"/>
+            <binding.ws/>
+		</service>
+        <reference name="reference1" target="TestComponent1/Service1" />
+        <property name="testName">ASM_0026</property>
+    </component>
+    
+    <component name="TestComponent1">
+		<implementation.composite name="tns:TestComposite13"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"/>
+        </service>
+        <property name="serviceName">service1</property>
+        <!-- Property with complex type with a value declared using a subelement 
+             with the correct XSD global element type -->
+        <property name="complexType" element="test:globalElement1">
+            <test:globalElement1>
+            	<firstData>complex1</firstData>
+            	<secondData>complex2</secondData>
+            </test:globalElement1>
+        </property>
+    </component> 
+    
+</composite>

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0027.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0027.composite?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0027.composite (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0027.composite Wed Mar 11 16:02:30 2009
@@ -0,0 +1,49 @@
+<?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.    
+-->
+<!-- Tests that where a <component/> has 2 or more <property/> child elements 
+     that each <property/> element has a unique @name attribute value   -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://oasis/tests"
+           xmlns:tns="http://oasis/tests"
+           xmlns:test="http://oasis/tests"
+           name="TEST_ASM_0027">
+           
+    <component name="TestClient">
+		<implementation.composite name="tns:TestClient_0002"/>
+		<service name="TestInvocation">
+			<interface.java interface="test.TestInvocation"/>
+            <binding.ws/>
+		</service>
+        <reference name="reference1" target="TestComponent1/Service1" />
+        <property name="testName">ASM_0027</property>
+    </component>
+    
+    <component name="TestComponent1">
+		<implementation.composite name="tns:TestComposite1"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"/>
+        </service>
+        <property name="serviceName">service1</property>
+        <!-- Multiple properties with the same @name attribute value - an error -->
+        <property name="serviceName">service2</property>
+        <property name="serviceName">service3</property>
+    </component> 
+    
+</composite>

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0028.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0028.composite?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0028.composite (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0028.composite Wed Mar 11 16:02:30 2009
@@ -0,0 +1,55 @@
+<?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.    
+-->
+<!-- Tests that a <component/> <property/> @name attribute matches the 
+     @name attribute of one of the <property/> elements of the 
+     <componentType/> of the <implementation/> of the <component/>   -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://oasis/tests"
+           xmlns:tns="http://oasis/tests"
+           xmlns:test="http://oasis/tests"
+           name="TEST_ASM_0028">
+           
+    <component name="TestClient">
+		<implementation.composite name="tns:TestClient_0002"/>
+		<service name="TestInvocation">
+			<interface.java interface="test.TestInvocation"/>
+            <binding.ws/>
+		</service>
+        <reference name="reference1" target="TestComponent1/Service1" />
+        <property name="testName">ASM_0028</property>
+    </component>
+    
+    <component name="TestComponent1">
+		<implementation.composite name="tns:TestComposite1"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"/>
+        </service>
+        
+        <!--
+        <property name="serviceName">service1</property>
+        -->
+        
+        <!-- Property with @name attribute that does not match the @name
+             attribute of any of the <property/> elements in the 
+             <componentType/> of the <implementation/> -->
+        <property name="randomName">randomValue</property>
+    </component> 
+    
+</composite>

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0029.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0029.composite?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0029.composite (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0029.composite Wed Mar 11 16:02:30 2009
@@ -0,0 +1,58 @@
+<?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.    
+-->
+<!-- Tests that that where a <component/> <property/> has @many=false that 
+     there is only one <value/> child element of the <property/>   -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://oasis/tests"
+           xmlns:tns="http://oasis/tests"
+           xmlns:test="http://oasis/tests"
+           name="TEST_ASM_0029">
+           
+    <component name="TestClient">
+		<implementation.composite name="tns:TestClient_0002"/>
+		<service name="TestInvocation">
+			<interface.java interface="test.TestInvocation"/>
+            <binding.ws/>
+		</service>
+        <reference name="reference1" target="TestComponent1/Service1" />
+        <property name="testName">ASM_0029</property>
+    </component>
+    
+    <component name="TestComponent1">
+		<implementation.composite name="tns:TestComposite12"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"/>
+        </service>
+        <property name="serviceName">service1</property>
+        <!-- Property with complex type with many=false but 2 <value/>
+             subelements - which is an error -->
+        <property name="complexType" type="test:ComplexType1" many="false">
+        	<value>
+        		<test:firstData>SomeData</test:firstData>
+        		<test:secondData>MoreData</test:secondData>
+        	</value>
+        	<value>        	
+        		<test:firstData>SomeData2</test:firstData>
+        		<test:secondData>MoreData2</test:secondData>  	
+        	</value>
+        </property>
+    </component> 
+    
+</composite>

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0030.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0030.composite?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0030.composite (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0030.composite Wed Mar 11 16:02:30 2009
@@ -0,0 +1,51 @@
+<?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.    
+-->
+<!-- Tests that a <component/> <property/> with a @value attribute set 
+does not have any <value/> child elements   -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://oasis/tests"
+           xmlns:tns="http://oasis/tests"
+           xmlns:test="http://oasis/tests"
+           name="TEST_ASM_0030">
+           
+    <component name="TestClient">
+		<implementation.composite name="tns:TestClient_0002"/>
+		<service name="TestInvocation">
+			<interface.java interface="test.TestInvocation"/>
+            <binding.ws/>
+		</service>
+        <reference name="reference1" target="TestComponent1/Service1" />
+        <property name="testName">ASM_0030</property>
+    </component>
+    
+    <component name="TestComponent1">
+		<implementation.composite name="tns:TestComposite14"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"/>
+        </service>
+        <property name="serviceName">service1</property>
+        <!-- Property with value set via a @value attribute and also having 
+             <value/> child elements, which is an error -->
+        <property name="simpleType" value="someValue">
+        	<value>someOtherValue</value>
+        </property>
+    </component> 
+    
+</composite>

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0031.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0031.composite?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0031.composite (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_ASM_0031.composite Wed Mar 11 16:02:30 2009
@@ -0,0 +1,68 @@
+<?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.    
+-->
+<!-- Tests that where a <component/> <reference/> has its @target attribute set 
+     to a valid service and the <composite/> also contains a <wire/> element with 
+     @source set to the <component/> <reference/> and @target set to a second valid 
+     service and has @replace=true,  the <reference/> is wired to the second service 
+     only   -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://oasis/tests"
+           xmlns:tns="http://oasis/tests"
+           xmlns:test="http://oasis/tests"
+           name="TEST_ASM_0031">
+           
+    <component name="TestClient">
+		<implementation.composite name="tns:TestClient_0002"/>
+		<service name="TestInvocation">
+			<interface.java interface="test.TestInvocation"/>
+            <binding.ws/>
+		</service>
+        <reference name="reference1" target="TestComponent1/Service1" />
+        <property name="testName">ASM_0031</property>
+    </component>
+    
+    <component name="TestComponent1">
+		<implementation.composite name="tns:TestComposite4"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"/>
+        </service>
+        <property name="serviceName">service1</property>
+        <reference name="Reference1" target="TestComponent2/Service1"/>
+    </component> 
+    
+    <!-- Here is a wire that overrides the reference target of TestComponent1/Reference1 -->
+    <wire source="TestComponent1/Reference1" target="TestComponent3/Service1" replace="true"/>
+    
+    <component name="TestComponent2">
+		<implementation.composite name="tns:TestComposite1"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"/>
+        </service>
+        <property name="serviceName">service2</property>
+    </component>
+     
+    <component name="TestComponent3">
+		<implementation.composite name="tns:TestComposite1"/>
+        <service name="Service1">
+        	<interface.java interface="test.Service1"/>
+        </service>
+        <property name="serviceName">service3</property>
+    </component> 
+</composite>

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_Types.xsd
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_Types.xsd?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_Types.xsd (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_Types.xsd Wed Mar 11 16:02:30 2009
@@ -0,0 +1,37 @@
+<?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.    
+-->
+<!-- Schema for Schema types used by the SCA TestCases -->
+<schema xmlns="http://www.w3.org/2001/XMLSchema" 
+    targetNamespace="http://oasis/tests"
+    xmlns:test="http://oasis/tests"
+    xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"
+    elementFormDefault="qualified">
+
+
+    <!-- A complex type -->
+    <complexType name="ComplexType1">
+	    <element name="firstData" type="string" />
+        <element name="secondData" type="string" />
+    </complexType>
+    
+    <!-- A global element with a complex type -->
+    <element name="globalElement1" type="test:ComplexType1"/>
+       
+</schema>

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_Types.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/main/resources/Test_Types.xsd
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0025_TestCase.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0025_TestCase.java?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0025_TestCase.java (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0025_TestCase.java Wed Mar 11 16:02:30 2009
@@ -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 client;
+
+
+import test.ASM_0002_Client;
+import testClient.TestInvocation;
+
+/**
+ * Client for ASM_0025_TestCase, which tests that where a <component/> 
+ * <property/> has its value set by means of a child <value/> element, 
+ * that the type of the <value/> element matches the type declared for 
+ * the <property/> element   
+ */
+public class ASM_0025_TestCase extends BaseJAXWSTestCase {
+
+ 
+	/**
+	 * <p>
+	 * OSOA
+	 * No @value subelement in OSOA specification
+	 * <p>
+	 * OASIS
+	 * <p>
+	 * ASM50028
+	 * If the value subelement of a component property is specified, 
+	 * the type of the property MUST be an XML Schema simple type or an 
+	 * XML schema complex type
+	 */
+    protected TestConfiguration getTestConfiguration() {
+    	TestConfiguration config = new TestConfiguration();
+    	config.testName 		= "ASM_0025";
+    	config.input 			= "request";
+    	config.output 			= "ASM_0025 request service1 operation1 invokedcomplex1complex2";
+    	config.composite 		= "Test_ASM_0025.composite";
+    	config.testServiceName 	= "TestClient";
+    	config.testClass 		= ASM_0002_Client.class;
+    	config.serviceInterface = TestInvocation.class;
+    	return config;
+    }
+    
+} // end class Test_ASM_0003

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0025_TestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0025_TestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0026_TestCase.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0026_TestCase.java?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0026_TestCase.java (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0026_TestCase.java Wed Mar 11 16:02:30 2009
@@ -0,0 +1,64 @@
+/*
+ * 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 client;
+
+
+import test.ASM_0002_Client;
+import testClient.TestInvocation;
+
+/**
+ * Client for ASM_0026_TestCase, which tests that where a <component/> <property/> 
+ * has its value set by means of a child element that is NOT a <value/> element, 
+ * that a) the type of the <property/> element is declared as an XML Schema global 
+ * element by its @element attribute and b) that the child element is an instance 
+ * of that global element 
+ */
+public class ASM_0026_TestCase extends BaseJAXWSTestCase {
+
+ 
+	/**
+	 * <p>
+	 * OSOA Line 1113~1118
+	 * The property element may contain an optional default-property-value, which provides default
+	 * value for the property. The default value must match the type declared for the property
+	 *  1) a string, if type is a simple type (must match the type declared)
+	 *  2) a complex type value matching the type declared by type
+	 *  3) an element matching the element named by element
+	 *  4) multiple values are permitted if many="true" is specified 
+	 * <p>
+	 * OASIS 
+	 * <p>
+	 * ASM50029
+	 * If a component property value is declared using a child element of the <property/>
+	 * element, the type of the property MUST be an XML Schema global element and the
+	 * declared child element MUST be an instance of that global element
+	 */
+    protected TestConfiguration getTestConfiguration() {
+    	TestConfiguration config = new TestConfiguration();
+    	config.testName 		= "ASM_0026";
+    	config.input 			= "request";
+    	config.output 			= "ASM_0026 request service1 operation1 invokedcomplex1complex2";
+    	config.composite 		= "Test_ASM_0026.composite";
+    	config.testServiceName 	= "TestClient";
+    	config.testClass 		= ASM_0002_Client.class;
+    	config.serviceInterface = TestInvocation.class;
+    	return config;
+    }
+    
+} // end class Test_ASM_0003

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0026_TestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0026_TestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0027_TestCase.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0027_TestCase.java?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0027_TestCase.java (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0027_TestCase.java Wed Mar 11 16:02:30 2009
@@ -0,0 +1,60 @@
+/*
+ * 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 client;
+
+
+import test.ASM_0002_Client;
+import testClient.TestInvocation;
+
+/**
+ * Client for ASM_0027_TestCase, which tests that where a <component/> has 
+ * 2 or more <property/> child elements that each <property/> element has a 
+ * unique @name attribute value
+ */
+public class ASM_0027_TestCase extends BaseJAXWSTestCase {
+
+ 
+	/**
+	 * <p>
+	 * OSOA
+	 * No corresponding declaration for this feature.
+	 * <p>
+	 * OASIS
+	 * <p>
+	 * ASM50030
+	 * A <component/> element MUST NOT contain two <property/> subelements with the
+	 * same value of the @name attribute.
+	 * <p>
+	 * Jira issue:
+	 * https://issues.apache.org/jira/browse/TUSCANY-2863
+	 * 
+	 */
+    protected TestConfiguration getTestConfiguration() {
+    	TestConfiguration config = new TestConfiguration();
+    	config.testName 		= "ASM_0027";
+    	config.input 			= "request";
+    	config.output 			= "exception";
+    	config.composite 		= "Test_ASM_0027.composite";
+    	config.testServiceName 	= "TestClient";
+    	config.testClass 		= ASM_0002_Client.class;
+    	config.serviceInterface = TestInvocation.class;
+    	return config;
+    }
+    
+} // end class Test_ASM_0027

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0027_TestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0027_TestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0028_TestCase.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0028_TestCase.java?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0028_TestCase.java (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0028_TestCase.java Wed Mar 11 16:02:30 2009
@@ -0,0 +1,59 @@
+/*
+ * 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 client;
+
+
+import test.ASM_0002_Client;
+import testClient.TestInvocation;
+
+/**
+ * Client for ASM_0028_TestCase, which tests a <component/> <property/> @name 
+ * attribute matches the @name attribute of one of the <property/> elements of 
+ * the <componentType/> of the <implementation/> of the <component/> 
+ */
+public class ASM_0028_TestCase extends BaseJAXWSTestCase {
+
+ 
+	/**
+	 * <p>
+	 * OSOA
+	 * No corresponding statements for this feature.
+	 * <p>
+	 * OASIS
+	 * <p>
+	 * ASM50031
+	 * The name attribute of a component property MUST match the name of a property
+	 * element in the component type of the component implementation.
+	 * <p>
+	 * Jira issue:
+	 * https://issues.apache.org/jira/browse/TUSCANY-2901
+	 */
+    protected TestConfiguration getTestConfiguration() {
+    	TestConfiguration config = new TestConfiguration();
+    	config.testName 		= "ASM_0028";
+    	config.input 			= "request";
+    	config.output 			= "exception";
+    	config.composite 		= "Test_ASM_0028.composite";
+    	config.testServiceName 	= "TestClient";
+    	config.testClass 		= ASM_0002_Client.class;
+    	config.serviceInterface = TestInvocation.class;
+    	return config;
+    }
+    
+} // end class Test_ASM_0028

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0028_TestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0028_TestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0029_TestCase.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0029_TestCase.java?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0029_TestCase.java (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0029_TestCase.java Wed Mar 11 16:02:30 2009
@@ -0,0 +1,63 @@
+/*
+ * 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 client;
+
+
+import test.ASM_0002_Client;
+import testClient.TestInvocation;
+
+/**
+ * Client for ASM_0029_TestCase, which tests that where a <component/> <property/> 
+ * has @many=false that there is only one <value/> child element of the <property/> 
+ */
+public class ASM_0029_TestCase extends BaseJAXWSTestCase {
+
+ 
+	/**
+	 * <p>
+	 * OSOA Line 1104~1106
+	 * <p>
+	 * many (optional) - whether the property is single-valued (false) or multi-valued (true).
+	 * The default is false. In the case of a multi-valued property, it is presented to the
+	 * implementation as a Collection of property values.
+	 * <p>
+	 * OASIS
+	 * <p>
+	 * ASM50032
+	 * If a property is single-valued, the <value/> subelement MUST NOT occur more than once.
+	 * <p>
+	 * OSOA didn't explicitly say "MUST NOT occur more than once".
+	 * <p>
+	 * Jira issue:
+	 * https://issues.apache.org/jira/browse/TUSCANY-2902
+	 *   
+	 */
+    protected TestConfiguration getTestConfiguration() {
+    	TestConfiguration config = new TestConfiguration();
+    	config.testName 		= "ASM_0029";
+    	config.input 			= "request";
+    	config.output 			= "exception";
+    	config.composite 		= "Test_ASM_0029.composite";
+    	config.testServiceName 	= "TestClient";
+    	config.testClass 		= ASM_0002_Client.class;
+    	config.serviceInterface = TestInvocation.class;
+    	return config;
+    }
+    
+} // end class Test_ASM_0029

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0029_TestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0029_TestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0030_TestCase.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0030_TestCase.java?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0030_TestCase.java (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0030_TestCase.java Wed Mar 11 16:02:30 2009
@@ -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 client;
+
+
+import test.ASM_0002_Client;
+import testClient.TestInvocation;
+
+/**
+ * Client for ASM_0030_TestCase, which tests that a <component/> <property/> 
+ * with a @value attribute set does not have any <value/> child elements 
+ */
+public class ASM_0030_TestCase extends BaseJAXWSTestCase {
+
+ 
+	/**
+	 * <p>
+	 * OSOA
+	 * No @value attribute for the property in OSOA spec.
+	 * So this TestCase is not valid.
+	 * <p>
+	 * OASIS
+	 * <p>
+	 * ASM50033
+	 * A property <value/> subelement MUST NOT be used when the @value attribute 
+	 * is used to specify the value for that property.
+	 * 
+	 */
+    protected TestConfiguration getTestConfiguration() {
+    	TestConfiguration config = new TestConfiguration();
+    	config.testName 		= "ASM_0030";
+    	config.input 			= "request";
+    	config.output 			= "exception";
+    	config.composite 		= "Test_ASM_0030.composite";
+    	config.testServiceName 	= "TestClient";
+    	config.testClass 		= ASM_0002_Client.class;
+    	config.serviceInterface = TestInvocation.class;
+    	return config;
+    }
+    
+} // end class Test_ASM_0030

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0030_TestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0030_TestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0031_TestCase.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0031_TestCase.java?rev=752484&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0031_TestCase.java (added)
+++ tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0031_TestCase.java Wed Mar 11 16:02:30 2009
@@ -0,0 +1,63 @@
+/*
+ * 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 client;
+
+
+import test.ASM_0002_Client;
+import testClient.TestInvocation;
+
+/**
+ * Client for ASM_0031_TestCase, which tests that where a <component/> <reference/> 
+ * has its @target attribute set  to a valid service and the <composite/> also 
+ * contains a <wire/> element with @source set to the <component/> <reference/> 
+ * and @target set to a second valid service and has @replace=true, the <reference/> 
+ * is wired to the second service only
+ */
+public class ASM_0031_TestCase extends BaseJAXWSTestCase {
+
+ 
+	/**
+	 * <p>
+	 * OSOA
+	 * No @replace in OSOA specification currently.
+	 * <p>
+	 * OASIS
+	 * <p>
+	 * ASM50034
+	 * If any <wire/> element with its @replace attribute set to "true" has 
+	 * a particular reference specified in its @source attribute, 
+	 * the value of the @target attribute for that reference MUST be ignored 
+	 * and MUST NOT be used to define target services for that reference.
+	 * <p>
+	 * Jira issue: 
+	 * https://issues.apache.org/jira/browse/TUSCANY-2903
+	 */
+    protected TestConfiguration getTestConfiguration() {
+    	TestConfiguration config = new TestConfiguration();
+    	config.testName 		= "ASM_0031";
+    	config.input 			= "request";
+    	config.output 			= "ASM_0031 request service1 operation1 invoked service3 operation1 invoked";
+    	config.composite 		= "Test_ASM_0031.composite";
+    	config.testServiceName 	= "TestClient";
+    	config.testClass 		= ASM_0002_Client.class;
+    	config.serviceInterface = TestInvocation.class;
+    	return config;
+    }
+    
+} // end class Test_ASM_0031

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0031_TestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/branches/sca-java-1.x/stest/sampleTest/src/test/java/client/ASM_0031_TestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date