-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0029, 0030, 0031, 0032, 0033, 0034, 6001, 6002, 6003, 6004 Updated ASM_0028_TestCase.java and BaseJAXWSTestCase.java to deal better with exceptions. git-svn-id: https://svn.apache.org/repos/asf/tuscany/java/sca@743360 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Mike Edwards
committed
Feb 11, 2009
1 parent
d0168a4
commit fdce3bb
Showing
31 changed files
with
1,334 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
stest/sampleTest/src/main/resources/TestComposite14.composite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
43 changes: 43 additions & 0 deletions
43
stest/sampleTest/src/main/resources/TestComposite15.composite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
48 changes: 48 additions & 0 deletions
48
stest/sampleTest/src/main/resources/TestComposite16.composite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
46 changes: 46 additions & 0 deletions
46
stest/sampleTest/src/main/resources/TestComposite17.composite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
42 changes: 42 additions & 0 deletions
42
stest/sampleTest/src/main/resources/TestComposite18.composite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
41 changes: 41 additions & 0 deletions
41
stest/sampleTest/src/main/resources/TestDuplicate1.composite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
41 changes: 41 additions & 0 deletions
41
stest/sampleTest/src/main/resources/TestDuplicate2.composite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
58 changes: 58 additions & 0 deletions
58
stest/sampleTest/src/main/resources/Test_ASM_0029.composite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"> | ||
<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> |
Oops, something went wrong.