summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-02-11 04:27:47 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-02-11 04:27:47 +0000
commit009ee4438f33508bf3d67200473db2eb93aad393 (patch)
tree37a714ba11c3bafdcf469a64b3e60d7a2841588c
parent45f532168598a09d523eb051fa78c6416f913b2a (diff)
Start of some tests for import/export across nodes
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@908836 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--sca-java-2.x/trunk/itest/nodes/test-iface-export/pom.xml39
-rw-r--r--sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/NonSimpleType.java40
-rw-r--r--sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/SomeException.java41
-rw-r--r--sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/TestService.java31
-rw-r--r--sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/resources/META-INF/sca-contribution.xml23
5 files changed, 174 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/itest/nodes/test-iface-export/pom.xml b/sca-java-2.x/trunk/itest/nodes/test-iface-export/pom.xml
new file mode 100644
index 0000000000..0bb6c1f5c8
--- /dev/null
+++ b/sca-java-2.x/trunk/itest/nodes/test-iface-export/pom.xml
@@ -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>
diff --git a/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/NonSimpleType.java b/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/NonSimpleType.java
new file mode 100644
index 0000000000..6d75a43b2b
--- /dev/null
+++ b/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/NonSimpleType.java
@@ -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;
+ }
+}
diff --git a/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/SomeException.java b/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/SomeException.java
new file mode 100644
index 0000000000..1cbeee7020
--- /dev/null
+++ b/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/SomeException.java
@@ -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);
+ }
+
+}
diff --git a/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/TestService.java b/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/TestService.java
new file mode 100644
index 0000000000..4aeab0ffda
--- /dev/null
+++ b/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/TestService.java
@@ -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;
+
+}
diff --git a/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/resources/META-INF/sca-contribution.xml
new file mode 100644
index 0000000000..5f1cc96bef
--- /dev/null
+++ b/sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/resources/META-INF/sca-contribution.xml
@@ -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