From b7cf6cbae2bd1517a62bf44e7825700e304ce69f Mon Sep 17 00:00:00 2001 From: edwardsmj Date: Sat, 17 Jan 2009 09:12:43 +0000 Subject: ASM_0018_TestCase & ASM_0019_TestCase & ASM_0020_TestCase added git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@735255 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/resources/Test_ASM_0018.composite | 72 ++++++++++++++++++++++ .../src/main/resources/Test_ASM_0019.composite | 69 +++++++++++++++++++++ .../src/main/resources/Test_ASM_0020.composite | 71 +++++++++++++++++++++ .../src/test/java/client/ASM_0018_TestCase.java | 47 ++++++++++++++ .../src/test/java/client/ASM_0019_TestCase.java | 46 ++++++++++++++ .../src/test/java/client/ASM_0020_TestCase.java | 47 ++++++++++++++ 6 files changed, 352 insertions(+) create mode 100644 java/sca/stest/sampleTest/src/main/resources/Test_ASM_0018.composite create mode 100644 java/sca/stest/sampleTest/src/main/resources/Test_ASM_0019.composite create mode 100644 java/sca/stest/sampleTest/src/main/resources/Test_ASM_0020.composite create mode 100644 java/sca/stest/sampleTest/src/test/java/client/ASM_0018_TestCase.java create mode 100644 java/sca/stest/sampleTest/src/test/java/client/ASM_0019_TestCase.java create mode 100644 java/sca/stest/sampleTest/src/test/java/client/ASM_0020_TestCase.java (limited to 'java/sca') diff --git a/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0018.composite b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0018.composite new file mode 100644 index 0000000000..5d14af662a --- /dev/null +++ b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0018.composite @@ -0,0 +1,72 @@ + + + + + + + + + + + + + ASM_0018 + + + + + + + + service1 + + + + + + + + + + + + + + service2 + + + + + + + + + service3 + + + diff --git a/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0019.composite b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0019.composite new file mode 100644 index 0000000000..eb6315f9c9 --- /dev/null +++ b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0019.composite @@ -0,0 +1,69 @@ + + + + + + + + + + + + + ASM_0019 + + + + + + + + service1 + + + + + + + + + + + + service2 + + + + + + + + + service3 + + + diff --git a/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0020.composite b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0020.composite new file mode 100644 index 0000000000..bb35a8a9b8 --- /dev/null +++ b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0020.composite @@ -0,0 +1,71 @@ + + + + + + + + + + + + + ASM_0020 + + + + + + + + service1 + + + + + + + + + + + + + + service2 + + + + + + + + + service3 + + + diff --git a/java/sca/stest/sampleTest/src/test/java/client/ASM_0018_TestCase.java b/java/sca/stest/sampleTest/src/test/java/client/ASM_0018_TestCase.java new file mode 100644 index 0000000000..645f174df8 --- /dev/null +++ b/java/sca/stest/sampleTest/src/test/java/client/ASM_0018_TestCase.java @@ -0,0 +1,47 @@ +/* + * 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 client; + + +import test.ASM_0002_Client; +import testClient.TestInvocation; + +/** + * Client for ASM_0018_TestCase, which tests that where a + * of a has a child element and the + * corresponding element in the componentType has + * a binding child element, the from the is + * used for the reference + */ +public class ASM_0018_TestCase extends BaseJAXWSTestCase { + + + protected TestConfiguration getTestConfiguration() { + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_0018"; + config.input = "request"; + config.output = "ASM_0018 request service1 operation1 invoked service3 operation1 invoked"; + config.composite = "Test_ASM_0018.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; + } + +} // end class Test_ASM_0003 diff --git a/java/sca/stest/sampleTest/src/test/java/client/ASM_0019_TestCase.java b/java/sca/stest/sampleTest/src/test/java/client/ASM_0019_TestCase.java new file mode 100644 index 0000000000..1bfea7841f --- /dev/null +++ b/java/sca/stest/sampleTest/src/test/java/client/ASM_0019_TestCase.java @@ -0,0 +1,46 @@ +/* + * 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 client; + + +import test.ASM_0002_Client; +import testClient.TestInvocation; + +/** + * Client for ASM_0018_TestCase, which tests that where a + * of a has @autowire=”true” and also has @target identifying + * a single target service that the reference is wired only to the single + * service identified by the @target attribute + */ +public class ASM_0019_TestCase extends BaseJAXWSTestCase { + + + protected TestConfiguration getTestConfiguration() { + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_0019"; + config.input = "request"; + config.output = "ASM_0019 request service1 operation1 invoked service3 operation1 invoked"; + config.composite = "Test_ASM_0019.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; + } + +} // end class Test_ASM_0003 diff --git a/java/sca/stest/sampleTest/src/test/java/client/ASM_0020_TestCase.java b/java/sca/stest/sampleTest/src/test/java/client/ASM_0020_TestCase.java new file mode 100644 index 0000000000..aeb6a92095 --- /dev/null +++ b/java/sca/stest/sampleTest/src/test/java/client/ASM_0020_TestCase.java @@ -0,0 +1,47 @@ +/* + * 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 client; + + +import test.ASM_0002_Client; +import testClient.TestInvocation; + +/** + * Client for ASM_0020_TestCase, which tests that where a + * of a has @autowire=true and where there is also a single + * element which as that as its source that the + * reference is wired only to the single service identified by the + * element + */ +public class ASM_0020_TestCase extends BaseJAXWSTestCase { + + + protected TestConfiguration getTestConfiguration() { + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_0020"; + config.input = "request"; + config.output = "ASM_0020 request service1 operation1 invoked service3 operation1 invoked"; + config.composite = "Test_ASM_0020.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; + } + +} // end class Test_ASM_0003 -- cgit v1.2.3