You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2010/02/11 05:27:47 UTC

svn commit: r908836 - in /tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export: ./ src/ src/main/ src/main/java/ src/main/java/itest/ src/main/java/itest/iface/ src/main/resources/ src/main/resources/META-INF/

Author: antelder
Date: Thu Feb 11 04:27:47 2010
New Revision: 908836

URL: http://svn.apache.org/viewvc?rev=908836&view=rev
Log:
Start of some tests for import/export across nodes

Added:
    tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/   (with props)
    tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/pom.xml
    tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/
    tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/
    tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/
    tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/
    tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/
    tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/NonSimpleType.java
    tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/SomeException.java
    tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/TestService.java
    tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/resources/
    tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/resources/META-INF/
    tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/resources/META-INF/sca-contribution.xml

Propchange: tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Feb 11 04:27:47 2010
@@ -0,0 +1,20 @@
+target
+work
+dojo
+*.iws
+*.ipr
+*.iml
+derby.log
+maven.log
+maven-eclipse.xml
+build.xml
+build-dependency.xml
+velocity.log*
+junit*.properties
+surefire*.properties
+.project
+.classpath
+.settings
+.deployables
+.wtpmodules
+.externalToolBuilders

Added: tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/pom.xml?rev=908836&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/pom.xml (added)
+++ tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/pom.xml Thu Feb 11 04:27:47 2010
@@ -0,0 +1,39 @@
+<?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>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    <artifactId>itest-nodes-test-iface-export</artifactId>
+    <name>Apache Tuscany SCA iTest Nodes Test Iface Export</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-sca-api</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+</project>

Added: tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/NonSimpleType.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/NonSimpleType.java?rev=908836&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/NonSimpleType.java (added)
+++ tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/NonSimpleType.java Thu Feb 11 04:27:47 2010
@@ -0,0 +1,40 @@
+/*
+ * 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 itest.iface;
+
+public class NonSimpleType {
+
+    protected String name;
+
+    public NonSimpleType() {
+     }
+
+    public NonSimpleType(String name) {
+        this.name = name;
+    }
+    
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+}

Added: tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/SomeException.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/SomeException.java?rev=908836&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/SomeException.java (added)
+++ tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/SomeException.java Thu Feb 11 04:27:47 2010
@@ -0,0 +1,41 @@
+/*
+ * 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 itest.iface;
+
+public class SomeException extends Exception {
+
+    public SomeException() {
+       super();
+    }
+
+    public SomeException(String msg) {
+       super(msg);
+    }
+    
+
+    public SomeException(Exception cause) {
+       super(cause);
+    }
+
+    public SomeException(String msg, Exception cause) {
+       super(msg, cause);
+    }
+
+}

Added: tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/TestService.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/TestService.java?rev=908836&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/TestService.java (added)
+++ tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/TestService.java Thu Feb 11 04:27:47 2010
@@ -0,0 +1,31 @@
+/*
+ * 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 itest.iface;
+
+import org.oasisopen.sca.annotation.Remotable;
+
+@Remotable
+public interface TestService {
+    
+    String sayHello(String name);
+
+    NonSimpleType testCT(NonSimpleType name) throws SomeException;
+
+}

Added: tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/resources/META-INF/sca-contribution.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/resources/META-INF/sca-contribution.xml?rev=908836&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/resources/META-INF/sca-contribution.xml (added)
+++ tuscany/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/resources/META-INF/sca-contribution.xml Thu Feb 11 04:27:47 2010
@@ -0,0 +1,23 @@
+<?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://docs.oasis-open.org/ns/opencsa/sca/200912"
+              xmlns:itest="http://itest">
+   	<export.java package="itest.iface"/>
+</contribution>
\ No newline at end of file