diff options
Diffstat (limited to 'branches/sca-java-20080910/itest/corba/src/test/resources')
9 files changed, 0 insertions, 494 deletions
diff --git a/branches/sca-java-20080910/itest/corba/src/test/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator b/branches/sca-java-20080910/itest/corba/src/test/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator deleted file mode 100644 index 3e77527d73..0000000000 --- a/branches/sca-java-20080910/itest/corba/src/test/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator +++ /dev/null @@ -1,18 +0,0 @@ -# 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.
-
-org.apache.tuscany.sca.test.corba.TestCorbaHostModuleActivator
diff --git a/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioFive.composite b/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioFive.composite deleted file mode 100644 index 3c73e238a5..0000000000 --- a/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioFive.composite +++ /dev/null @@ -1,41 +0,0 @@ -<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
- targetNamespace="http://sample"
- xmlns:sample="http://sample"
- name="Corba">
-
- <component name="ScenarioFiveService">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.ScenarioFiveImpl" />
- </component>
- <service name="ScenarioFive" promote="ScenarioFiveService">
- <interface.java interface="org.apache.tuscany.sca.test.corba.types.ScenarioFive"/>
- <binding.sca uri="corbaname::localhost:5090#ScenarioFive"/>
- </service>
-
- <component name="ScenarioFive">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.ScenarioFiveComponent" />
- <reference name="scenarioFive">
- <binding.sca uri="corbaname::localhost:5090#ScenarioFive"/>
- </reference>
- </component>
-
-</composite>
diff --git a/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioFour.composite b/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioFour.composite deleted file mode 100644 index 01d7e2314a..0000000000 --- a/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioFour.composite +++ /dev/null @@ -1,56 +0,0 @@ -<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
- targetNamespace="http://sample"
- xmlns:sample="http://sample"
- name="Corba">
-
- <!-- note that some binding configuration (like port or host name) is also used in JUnit test class -->
-
- <component name="ScenarioFourService">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.ScenarioFourImpl" />
- </component>
- <service name="ScenarioFour" promote="ScenarioFourService">
- <interface.java interface="org.apache.tuscany.sca.test.corba.types.ScenarioFour"/>
- <binding.sca uri="corbaname::localhost:5080#ScenarioFour"/>
- </service>
-
- <component name="ScenarioFour">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.ScenarioFourComponent" />
- <reference name="scenarioFour">
- <binding.sca uri="corbaname::localhost:5080#ScenarioFour"/>
- </reference>
- </component>
-
- <!-- doubled service and reference to test reuse of name server -->
- <service name="ScenarioFourDoubled" promote="ScenarioFourService">
- <interface.java interface="org.apache.tuscany.sca.test.corba.types.ScenarioFour"/>
- <binding.sca uri="corbaname::localhost:5080#ScenarioFourReuse"/>
- </service>
-
- <component name="ScenarioFourReuse">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.ScenarioFourComponent" />
- <reference name="scenarioFour">
- <binding.sca uri="corbaname::localhost:5080#ScenarioFourReuse"/>
- </reference>
- </component>
-
-</composite>
diff --git a/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioOne.composite b/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioOne.composite deleted file mode 100644 index c10b383661..0000000000 --- a/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioOne.composite +++ /dev/null @@ -1,111 +0,0 @@ -<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
- targetNamespace="http://sample"
- xmlns:sample="http://sample"
- name="Corba">
-
- <!-- note that some binding configuration (like port or host name) is also used in JUnit test class -->
-
- <!-- reference 1 - consuming traditional CORBA service using USER PROVIDED Java interface -->
- <component name="ScenarioOne">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.TScenarioOneComponent" />
- <reference name="scenarioOne">
- <tuscany:binding.corba host="localhost" port="5060" name="ScenarioOne"/>
- </reference>
- </component>
-
- <!-- reference 2 - consuming traditional CORBA service using GENERATED Java interface -->
- <component name="ScenarioOneGenerated">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.ScenarioOneComponent" />
- <reference name="scenarioOne">
- <tuscany:binding.corba host="localhost" port="5060" name="ScenarioOne"/>
- </reference>
- </component>
-
- <!-- TUSCANY CORBA SERVICE 1 (TS1) - CORBA service using USER PROVIDED Java interface -->
- <component name="ScenarionOneService">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.TScenarioOneServant" />
- </component>
- <service name="ScenarionOneService" promote="ScenarionOneService">
- <interface.java interface="org.apache.tuscany.sca.test.corba.types.TScenarioOne"/>
- <tuscany:binding.corba host="localhost" port="5060" name="ScenarioOneTuscany" id="IDL:org/apache/tuscany/sca/test/corba/generated/ScenarioOne:1.0"/>
- </service>
-
- <!-- TUSCANY CORBA SERVICE 2 (TS2) - CORBA service using GENERATED provided Java interface -->
- <component name="ScenarionOneServiceGenerated">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.ScenarioOneServant" />
- </component>
- <service name="ScenarionOneServiceGenerated" promote="ScenarionOneServiceGenerated">
- <interface.java interface="org.apache.tuscany.sca.test.corba.generated.ScenarioOneOperations"/>
- <tuscany:binding.corba host="localhost" port="5060" name="ScenarioOneTuscanyGenerated" id="IDL:org/apache/tuscany/sca/test/corba/generated/ScenarioOne:1.0"/>
- </service>
-
- <!-- reference 3 - user provided interface combined with TUSCANY SERVICE 1 (TS1) -->
- <component name="TU2TS1">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.TScenarioOneComponent" />
- <reference name="scenarioOne">
- <tuscany:binding.corba host="localhost" port="5060" name="ScenarioOneTuscany"/>
- </reference>
- </component>
-
- <!-- reference 4 - generated interface combined with TUSCANY SERVICE 1 (TS1) -->
- <component name="TG2TS1">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.ScenarioOneComponent" />
- <reference name="scenarioOne">
- <tuscany:binding.corba host="localhost" port="5060" name="ScenarioOneTuscany"/>
- </reference>
- </component>
-
- <!-- reference 5 - user provided interface combined with TUSCANY SERVICE 2 (TS2) -->
- <component name="TU2TS2">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.TScenarioOneComponent" />
- <reference name="scenarioOne">
- <tuscany:binding.corba host="localhost" port="5060" name="ScenarioOneTuscanyGenerated"/>
- </reference>
- </component>
-
- <!-- reference 6 - generated interface combined with TUSCANY SERVICE 2 (TS2) -->
- <component name="TG2TS2">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.ScenarioOneComponent" />
- <reference name="scenarioOne">
- <tuscany:binding.corba host="localhost" port="5060" name="ScenarioOneTuscanyGenerated"/>
- </reference>
- </component>
-
- <!-- TUSCANY CORBA SERVICE 3 (TS3) - CORBA service using registered using URI -->
- <component name="ScenarionOneServiceURI">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.TScenarioOneServant" />
- </component>
- <service name="ScenarionOneServiceGenerated" promote="ScenarionOneServiceGenerated">
- <interface.java interface="org.apache.tuscany.sca.test.corba.generated.ScenarioOneOperations"/>
- <tuscany:binding.corba uri="corbaname::localhost:5060#NamedWithURI"/>
- </service>
-
- <!-- reference 7 - ... -->
- <component name="UriBinding">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.TScenarioOneComponent" />
- <reference name="scenarioOne">
- <tuscany:binding.corba uri="corbaname::localhost:5060#NamedWithURI"/>
- </reference>
- </component>
-
-</composite>
diff --git a/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioSix.composite b/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioSix.composite deleted file mode 100644 index 88238478c1..0000000000 --- a/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioSix.composite +++ /dev/null @@ -1,41 +0,0 @@ -<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
- targetNamespace="http://sample"
- xmlns:sample="http://sample"
- name="Corba">
-
- <component name="ScenarioSix">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.TScenarioSixComponent" />
- <reference name="scenarioSix">
- <tuscany:binding.corba host="localhost" port="5050" name="ScenarioSix"/>
- </reference>
- </component>
-
- <component name="ScenarionSixService">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.TScenarioSixServant" />
- </component>
- <service name="ScenarionSixService" promote="ScenarionSixService">
- <interface.java interface="org.apache.tuscany.sca.test.corba.types.TScenarioSix"/>
- <tuscany:binding.corba host="localhost" port="5050" name="ScenarioSixTuscany" id="IDL:org/apache/tuscany/sca/test/corba/generated/ScenarioSix:1.0"/>
- </service>
-
-</composite>
diff --git a/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioThree.composite b/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioThree.composite deleted file mode 100644 index f43e4a3f7a..0000000000 --- a/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioThree.composite +++ /dev/null @@ -1,43 +0,0 @@ -<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
- targetNamespace="http://sample"
- xmlns:sample="http://sample"
- name="Corba">
-
- <!-- note that some binding configuration (like port or host name) is also used in JUnit test class -->
-
- <component name="ScenarioThreeService">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.TScenarioThreeServant" />
- </component>
- <service name="ScenarioThreeServiceTuscany" promote="ScenarioThreeService">
- <interface.java interface="org.apache.tuscany.sca.test.corba.types.TScenarioThree"/>
- <tuscany:binding.corba uri="corbaname::localhost:5060#ScenarioThree"/>
- </service>
-
- <component name="ScenarioThreeReference">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.TScenarioThreeComponent" />
- <reference name="scenarioThree">
- <tuscany:binding.corba uri="corbaname::localhost:5060#ScenarioThree"/>
- </reference>
- </component>
-
-</composite>
diff --git a/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioTwo.composite b/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioTwo.composite deleted file mode 100644 index dc5ddc50d3..0000000000 --- a/branches/sca-java-20080910/itest/corba/src/test/resources/ScenarioTwo.composite +++ /dev/null @@ -1,43 +0,0 @@ -<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
- targetNamespace="http://sample"
- xmlns:sample="http://sample"
- name="Corba">
-
- <!-- note that some binding configuration (like port or host name) is also used in JUnit test class -->
-
- <component name="ScenarioTwoService">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.TScenarioTwoServant" />
- </component>
- <service name="ScenarioTwoServiceTuscany" promote="ScenarioTwoService">
- <interface.java interface="org.apache.tuscany.sca.test.corba.types.TScenarioTwo"/>
- <tuscany:binding.corba uri="corbaname::localhost:5060#ScenarioTwo" id="IDL:org/apache/tuscany/sca/test/corba/generated/ScenarioTwo:1.0"/>
- </service>
-
- <component name="ScenarioTwo">
- <implementation.java class="org.apache.tuscany.sca.test.corba.types.TScenarioTwoComponent" />
- <reference name="scenarioTwo">
- <tuscany:binding.corba uri="corbaname::localhost:5060#ScenarioTwoGenerated"/>
- </reference>
- </component>
-
-</composite>
diff --git a/branches/sca-java-20080910/itest/corba/src/test/resources/itest_scenario.idl b/branches/sca-java-20080910/itest/corba/src/test/resources/itest_scenario.idl deleted file mode 100644 index 41489a4565..0000000000 --- a/branches/sca-java-20080910/itest/corba/src/test/resources/itest_scenario.idl +++ /dev/null @@ -1,110 +0,0 @@ -/*
- * 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.
- */
-
-/*
- * compile by
- * idlj -fall -oldImplBase itest_scenario.idl
- */
-
-module org {
- module apache {
- module tuscany {
- module sca {
- module test {
- module corba {
- module generated {
-
- // objects for ScenarioOne
-
- enum Color {red, yellow, green};
-
- typedef sequence<string> StringSequence;
- typedef sequence<long> LongSequence;
- typedef sequence<LongSequence> TwoDimLongSequence;
-
- struct InnerStruct {
- TwoDimLongSequence twoDimLongSequence;
- string stringField;
- Color color;
- };
-
- struct RichStruct {
- InnerStruct innerStruct;
- StringSequence stringSequence;
- long longField;
- };
-
- exception WrongColor {
- Color givenColor;
- Color correctColor;
- };
-
- exception UnexpectedException {
- string info;
- };
-
- interface ScenarioOne {
-
- RichStruct setRichStruct(in RichStruct richStruct) raises (WrongColor, UnexpectedException);
-
- };
-
- // objects for ScenarioTwo
-
- interface ScenarioTwo {
-
- attribute string stringField;
-
- };
-
- typedef string StringArray[2][2];
-
- struct AnnotatedStruct {
- StringArray stringArray;
- };
-
- union InnerUnion switch (long) {
- case 1: long x;
- case 2: float y;
- };
-
- union RichUnion switch (long) {
- case 1: long x;
- case 2: float y;
- case 3: string z;
- case 4: InnerUnion iu;
- default: boolean a;
- };
-
- interface ScenarioSix {
-
- StringArray passStringArray(in StringArray arg);
-
- AnnotatedStruct passAnnotatedStruct(in AnnotatedStruct arg);
-
- RichUnion passRichUnion(in RichUnion arg);
-
- };
- };
- };
- };
- };
- };
- };
-};
diff --git a/branches/sca-java-20080910/itest/corba/src/test/resources/scenariofour.xsd b/branches/sca-java-20080910/itest/corba/src/test/resources/scenariofour.xsd deleted file mode 100644 index 2669b54be3..0000000000 --- a/branches/sca-java-20080910/itest/corba/src/test/resources/scenariofour.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?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 targetNamespace="http://example.com/scenariofour" xmlns="http://www.w3.org/2001/XMLSchema"> - - <element name="ScenarioFourSdo"> - <complexType> - <sequence> - <element name="message" minOccurs="1" type="string" /> - <element name="symbol" minOccurs="1" type="string" /> - </sequence> - </complexType> - </element> - -</schema> |