From 8dd24acf4d472b50bd242aa167521f095d855caf Mon Sep 17 00:00:00 2001 From: edwardsmj Date: Mon, 19 Jan 2009 12:01:23 +0000 Subject: Added Test_ASM_0024 Test_ASM_0025 git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@735670 13f79535-47bb-0310-9956-ffa450edef68 --- .../sampleTest/src/main/java/test/Service1.java | 4 ++ .../src/main/java/test/service1Impl5.java | 44 ++++++++++++++++ .../src/main/resources/TestComposite1.composite | 1 + .../src/main/resources/TestComposite12.composite | 45 ++++++++++++++++ .../src/main/resources/Test_ASM_0024.composite | 60 ++++++++++++++++++++++ .../src/main/resources/Test_ASM_0025.composite | 54 +++++++++++++++++++ .../sampleTest/src/main/resources/Test_Types.xsd | 32 ++++++++++++ 7 files changed, 240 insertions(+) create mode 100644 java/sca/stest/sampleTest/src/main/java/test/service1Impl5.java create mode 100644 java/sca/stest/sampleTest/src/main/resources/TestComposite12.composite create mode 100644 java/sca/stest/sampleTest/src/main/resources/Test_ASM_0024.composite create mode 100644 java/sca/stest/sampleTest/src/main/resources/Test_ASM_0025.composite create mode 100644 java/sca/stest/sampleTest/src/main/resources/Test_Types.xsd (limited to 'java/sca/stest/sampleTest/src/main') diff --git a/java/sca/stest/sampleTest/src/main/java/test/Service1.java b/java/sca/stest/sampleTest/src/main/java/test/Service1.java index add3fe360d..da6b3d6424 100644 --- a/java/sca/stest/sampleTest/src/main/java/test/Service1.java +++ b/java/sca/stest/sampleTest/src/main/java/test/Service1.java @@ -18,11 +18,15 @@ */ package test; +// TODO: Need to change *ALL* annotations to org.oasisopen.xxxx +import org.osoa.sca.annotations.Remotable; + /** * A test service interface * @author MikeEdwards * */ +@Remotable public interface Service1 { /** diff --git a/java/sca/stest/sampleTest/src/main/java/test/service1Impl5.java b/java/sca/stest/sampleTest/src/main/java/test/service1Impl5.java new file mode 100644 index 0000000000..c4045b696c --- /dev/null +++ b/java/sca/stest/sampleTest/src/main/java/test/service1Impl5.java @@ -0,0 +1,44 @@ +/* + * 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 org.osoa.sca.annotations.*; + +/** + * Java component implementation for business interface Service1 + * - no references + * - 3 properties + * @author MikeEdwards + * + */ +@Service(Service1.class) +public class service1Impl5 implements Service1 { + + @Property + public String serviceName = "service1"; + @Property + public String serviceData1; + @Property + public String serviceData2; + + public String operation1(String input) { + return serviceName + " operation1 invoked" + serviceData1 + serviceData2; + } + +} diff --git a/java/sca/stest/sampleTest/src/main/resources/TestComposite1.composite b/java/sca/stest/sampleTest/src/main/resources/TestComposite1.composite index f1fd4c2d01..b6f23cf979 100644 --- a/java/sca/stest/sampleTest/src/main/resources/TestComposite1.composite +++ b/java/sca/stest/sampleTest/src/main/resources/TestComposite1.composite @@ -17,6 +17,7 @@ * specific language governing permissions and limitations * under the License. --> + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0024.composite b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0024.composite new file mode 100644 index 0000000000..31ec496e2e --- /dev/null +++ b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0024.composite @@ -0,0 +1,60 @@ + + + + + + + + + + + + + ASM_0024 + + + + + + + + service1 + + + + + + + + + + + + + + service2 + + + diff --git a/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0025.composite b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0025.composite new file mode 100644 index 0000000000..96ee58484a --- /dev/null +++ b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0025.composite @@ -0,0 +1,54 @@ + + + + + + + + + + + + + ASM_0025 + + + + + + + + service1 + + + + complex1 + complex2 + + + + + diff --git a/java/sca/stest/sampleTest/src/main/resources/Test_Types.xsd b/java/sca/stest/sampleTest/src/main/resources/Test_Types.xsd new file mode 100644 index 0000000000..b5de3a4c38 --- /dev/null +++ b/java/sca/stest/sampleTest/src/main/resources/Test_Types.xsd @@ -0,0 +1,32 @@ + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3