From 009ee4438f33508bf3d67200473db2eb93aad393 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 11 Feb 2010 04:27:47 +0000 Subject: 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 --- .../trunk/itest/nodes/test-iface-export/pom.xml | 39 ++++++++++++++++++++ .../src/main/java/itest/iface/NonSimpleType.java | 40 +++++++++++++++++++++ .../src/main/java/itest/iface/SomeException.java | 41 ++++++++++++++++++++++ .../src/main/java/itest/iface/TestService.java | 31 ++++++++++++++++ .../main/resources/META-INF/sca-contribution.xml | 23 ++++++++++++ 5 files changed, 174 insertions(+) create mode 100644 sca-java-2.x/trunk/itest/nodes/test-iface-export/pom.xml create mode 100644 sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/NonSimpleType.java create mode 100644 sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/SomeException.java create mode 100644 sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/java/itest/iface/TestService.java create mode 100644 sca-java-2.x/trunk/itest/nodes/test-iface-export/src/main/resources/META-INF/sca-contribution.xml 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 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 2.0-SNAPSHOT + ../pom.xml + + itest-nodes-test-iface-export + Apache Tuscany SCA iTest Nodes Test Iface Export + + + + org.apache.tuscany.sca + tuscany-sca-api + 2.0-SNAPSHOT + provided + + + 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 @@ + + + + + \ No newline at end of file -- cgit v1.2.3