tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r579366 - in /incubator/tuscany/java/sca/itest: ./ contribution-multiple/ contribution-multiple/src/ contribution-multiple/src/main/ contribution-multiple/src/main/java/ contribution-multiple/src/main/resources/ contribution-multiple/src/te...
Date Tue, 25 Sep 2007 20:12:33 GMT
Author: lresende
Date: Tue Sep 25 13:12:30 2007
New Revision: 579366

URL: http://svn.apache.org/viewvc?rev=579366&view=rev
Log:
TUSCANY-1756 - Applying patch from WangFeng

Added:
    incubator/tuscany/java/sca/itest/contribution-multiple/
    incubator/tuscany/java/sca/itest/contribution-multiple/pom.xml   (with props)
    incubator/tuscany/java/sca/itest/contribution-multiple/src/
    incubator/tuscany/java/sca/itest/contribution-multiple/src/main/
    incubator/tuscany/java/sca/itest/contribution-multiple/src/main/java/
    incubator/tuscany/java/sca/itest/contribution-multiple/src/main/resources/
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/hello/
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/hello/Hello.java
  (with props)
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/hello/HelloImpl.java
  (with props)
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/helloworld/
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/helloworld/HelloWorldImpl.java
  (with props)
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/helloworld/HelloWorldService.java
  (with props)
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/test/
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java
  (with props)
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml
  (with props)
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite
  (with props)
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml
  (with props)
    incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite
  (with props)
Modified:
    incubator/tuscany/java/sca/itest/pom.xml

Added: incubator/tuscany/java/sca/itest/contribution-multiple/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/contribution-multiple/pom.xml?rev=579366&view=auto
==============================================================================
--- incubator/tuscany/java/sca/itest/contribution-multiple/pom.xml (added)
+++ incubator/tuscany/java/sca/itest/contribution-multiple/pom.xml Tue Sep 25 13:12:30 2007
@@ -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.    
+-->
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-itest</artifactId>
+        <version>1.1-incubating-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    <artifactId>itest-contribution-multiple</artifactId>
+    <name>Apache Tuscany SCA Multiple Contribution Integration Tests</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-host-embedded</artifactId>
+            <version>1.1-incubating-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-contribution-impl</artifactId>
+            <version>1.1-incubating-SNAPSHOT</version>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-java-runtime</artifactId>
+            <version>1.1-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>        
+    </dependencies>
+</project>

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/hello/Hello.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/hello/Hello.java?rev=579366&view=auto
==============================================================================
--- incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/hello/Hello.java
(added)
+++ incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/hello/Hello.java
Tue Sep 25 13:12:30 2007
@@ -0,0 +1,29 @@
+/*
+ * 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 hello;
+
+import org.osoa.sca.annotations.Remotable;
+
+/**
+ * This is the business interface of the Hello service.
+ */
+public interface Hello {
+
+    public String getGreetings(String name);
+}

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/hello/Hello.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/hello/Hello.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/hello/HelloImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/hello/HelloImpl.java?rev=579366&view=auto
==============================================================================
--- incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/hello/HelloImpl.java
(added)
+++ incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/hello/HelloImpl.java
Tue Sep 25 13:12:30 2007
@@ -0,0 +1,33 @@
+/*
+ * 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 hello;
+
+import org.osoa.sca.annotations.Service;
+
+/**
+ * This class implements the HelloWorld service.
+ */
+@Service(Hello.class)
+public class HelloImpl implements Hello {
+
+    public String getGreetings(String name) {
+        return "Hello " + name;
+    }
+
+}

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/hello/HelloImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/hello/HelloImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/helloworld/HelloWorldImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/helloworld/HelloWorldImpl.java?rev=579366&view=auto
==============================================================================
--- incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/helloworld/HelloWorldImpl.java
(added)
+++ incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/helloworld/HelloWorldImpl.java
Tue Sep 25 13:12:30 2007
@@ -0,0 +1,38 @@
+/*
+ * 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 helloworld;
+
+import hello.Hello;
+
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Service;
+
+/**
+ * This class implements the HelloWorld service.
+ */
+@Service(HelloWorldService.class)
+public class HelloWorldImpl implements HelloWorldService {
+    @Reference
+    protected Hello helloServiceRef;
+
+    public String getGreetings(String name) {
+        return helloServiceRef.getGreetings(name);
+    }
+
+}

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/helloworld/HelloWorldImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/helloworld/HelloWorldImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/helloworld/HelloWorldService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/helloworld/HelloWorldService.java?rev=579366&view=auto
==============================================================================
--- incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/helloworld/HelloWorldService.java
(added)
+++ incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/helloworld/HelloWorldService.java
Tue Sep 25 13:12:30 2007
@@ -0,0 +1,29 @@
+/*
+ * 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 helloworld;
+
+import org.osoa.sca.annotations.Remotable;
+
+/**
+ * This is the business interface of the HelloWorld greetings service.
+ */
+public interface HelloWorldService {
+
+    public String getGreetings(String name);
+}

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/helloworld/HelloWorldService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/helloworld/HelloWorldService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java?rev=579366&view=auto
==============================================================================
--- incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java
(added)
+++ incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java
Tue Sep 25 13:12:30 2007
@@ -0,0 +1,116 @@
+/*
+ * 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 helloworld.HelloWorldService;
+
+import java.io.IOException;
+import java.net.URL;
+
+import org.apache.tuscany.sca.assembly.Composite;
+import org.apache.tuscany.sca.contribution.Contribution;
+import org.apache.tuscany.sca.contribution.service.ContributionService;
+import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain;
+
+import junit.framework.TestCase;
+
+/**
+ * Test multiple contributio scenario
+ * Contributed by TUSCANY-1756
+ */
+public class ContributionTestCase extends TestCase {
+
+    private String helloContribution_dir = "target/test-classes/contribution-export";
+    private String helloWorldContribution_one_dir = "target/test-classes/contribution-import-one";
+
+    private ClassLoader cl;
+    private EmbeddedSCADomain domain;
+    private Contribution helloContribution;
+    private Contribution helloWorldContribution_one;
+
+    protected void setUp() throws Exception {
+        URL helloContribution_URL = new java.io.File(helloContribution_dir).toURL();
+        URL helloWorldContribution_one_URL = new java.io.File(helloWorldContribution_one_dir).toURL();
+
+        // Create a test embedded SCA domain
+        cl = getClass().getClassLoader();
+        domain = new EmbeddedSCADomain(cl, "http://localhost");
+
+        // Start the domain
+        domain.start();
+
+        // Contribute the SCA contribution
+        ContributionService contributionService = domain.getContributionService();
+
+        helloContribution =
+            contributionService.contribute("http://import-export/export-composite", helloContribution_URL,
false);
+        
+        for (Composite deployable : helloContribution.getDeployables()) {
+            domain.getDomainComposite().getIncludes().add(deployable);
+            domain.getCompositeBuilder().build(deployable);
+        }
+        for (Composite deployable : helloContribution.getDeployables()) {
+            domain.getCompositeActivator().activate(deployable);
+            domain.getCompositeActivator().start(deployable);
+        }
+
+        helloWorldContribution_one =
+            contributionService.contribute("http://import-export/helloworld_one", helloWorldContribution_one_URL,
false);
+        for (Composite deployable : helloWorldContribution_one.getDeployables()) {
+            domain.getDomainComposite().getIncludes().add(deployable);
+            domain.getCompositeBuilder().build(deployable);
+        }
+
+        for (Composite deployable : helloWorldContribution_one.getDeployables()) {
+            domain.getCompositeActivator().activate(deployable);
+            domain.getCompositeActivator().start(deployable);
+        }
+
+    }
+
+    public void testServiceCall() throws IOException {
+        HelloWorldService helloWorldService_one =
+            domain.getService(HelloWorldService.class, "HelloWorldServiceComponent_one/HelloWorldService");
+        assertNotNull(helloWorldService_one);
+
+        assertEquals("Hello Smith", helloWorldService_one.getGreetings("Smith"));
+
+    }
+
+    public void tearDown() throws Exception {
+        ContributionService contributionService = domain.getContributionService();
+
+        // Remove the contribution from the in-memory repository
+        contributionService.remove("http://import-export/export-composite");
+        contributionService.remove("http://import-export/helloworld_one");
+
+        // Stop Components from my composite
+        for (Composite deployable : helloWorldContribution_one.getDeployables()) {
+            domain.getCompositeActivator().stop(deployable);
+            domain.getCompositeActivator().deactivate(deployable);
+        }
+        for (Composite deployable : helloContribution.getDeployables()) {
+            domain.getCompositeActivator().stop(deployable);
+            domain.getCompositeActivator().deactivate(deployable);
+        }
+        // domain.stop();
+        domain.close();
+    }
+
+}

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml?rev=579366&view=auto
==============================================================================
--- incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml
(added)
+++ incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml
Tue Sep 25 13:12:30 2007
@@ -0,0 +1,25 @@
+<?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.    
+-->
+<contribution xmlns="http://www.osoa.org/xmlns/sca/1.0"
+	          targetNamespace="http://hello"
+              xmlns:hello="http://hello">
+   	<deployable composite="hello:hello"/>
+   	<export namespace="http://hello"/>
+</contribution>
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite?rev=579366&view=auto
==============================================================================
--- incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite
(added)
+++ incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite
Tue Sep 25 13:12:30 2007
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you under the Apache License, Version 2.0 (the
+    * "License"); you may not use this file except in compliance
+    * with the License.  You may obtain a copy of the License at
+    * 
+    *   http://www.apache.org/licenses/LICENSE-2.0
+    * 
+    * Unless required by applicable law or agreed to in writing,
+    * software distributed under the License is distributed on an
+    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    * KIND, either express or implied.  See the License for the
+    * specific language governing permissions and limitations
+    * under the License.    
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+	targetNamespace="http://hello"
+	xmlns:hello="http://hello"
+    name="hello">
+
+	<service name="HelloService" promote="HelloServiceComponent"/>
+	
+    <component name="HelloServiceComponent">
+        <implementation.java class="hello.HelloImpl" />
+    </component>
+
+</composite>

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml?rev=579366&view=auto
==============================================================================
--- incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml
(added)
+++ incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml
Tue Sep 25 13:12:30 2007
@@ -0,0 +1,26 @@
+<?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.    
+-->
+<contribution xmlns="http://www.osoa.org/xmlns/sca/1.0"
+	          targetNamespace="http://helloworld"
+              xmlns:helloworld="http://helloworld"
+              xmlns:hello="http://hello">
+   <deployable composite="helloworld:helloworld_one"/>
+   <import namespace="http://hello"/>
+</contribution>
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite?rev=579366&view=auto
==============================================================================
--- incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite
(added)
+++ incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite
Tue Sep 25 13:12:30 2007
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you under the Apache License, Version 2.0 (the
+    * "License"); you may not use this file except in compliance
+    * with the License.  You may obtain a copy of the License at
+    * 
+    *   http://www.apache.org/licenses/LICENSE-2.0
+    * 
+    * Unless required by applicable law or agreed to in writing,
+    * software distributed under the License is distributed on an
+    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    * KIND, either express or implied.  See the License for the
+    * specific language governing permissions and limitations
+    * under the License.    
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+	targetNamespace="http://helloworld"
+	xmlns:helloworld="http://helloworld"
+	xmlns:hello="http://hello"
+    name="helloworld_one">
+
+    <component name="SourceHelloServiceComponent_one">
+       <implementation.composite name="hello:hello"/>
+    </component>
+
+    <component name="HelloWorldServiceComponent_one">
+        <implementation.java class="helloworld.HelloWorldImpl" />
+        <reference name="helloServiceRef" target="SourceHelloServiceComponent_one/HelloService"/>
+    </component>
+
+</composite>

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/tuscany/java/sca/itest/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/pom.xml?rev=579366&r1=579365&r2=579366&view=diff
==============================================================================
--- incubator/tuscany/java/sca/itest/pom.xml (original)
+++ incubator/tuscany/java/sca/itest/pom.xml Tue Sep 25 13:12:30 2007
@@ -45,6 +45,7 @@
                 <module>callback-set-callback</module>
                 <module>callback-set-conversation</module>
                 <module>contribution</module>
+                <module>contribution-multiple</module>
                 <module>contribution-import-export</module>
                 <module>conversations</module>
                 <module>databindings</module>



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message