From 2d2b2e620205ad208887eb0499a9e47b4f2d29ce Mon Sep 17 00:00:00 2001 From: edwardsmj Date: Thu, 26 Feb 2009 15:28:20 +0000 Subject: Created Test_ASM_6007, Test_ASM_6008 git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@748180 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/resources/TestComposite21.composite | 48 +++++++++++++++++ .../src/main/resources/TestComposite22.composite | 61 ++++++++++++++++++++++ .../src/main/resources/Test_ASM_6007.composite | 55 +++++++++++++++++++ .../src/main/resources/Test_ASM_6008.composite | 54 +++++++++++++++++++ .../src/test/java/client/ASM_6007_TestCase.java | 45 ++++++++++++++++ .../src/test/java/client/ASM_6008_TestCase.java | 46 ++++++++++++++++ 6 files changed, 309 insertions(+) create mode 100644 java/sca/stest/sampleTest/src/main/resources/TestComposite21.composite create mode 100644 java/sca/stest/sampleTest/src/main/resources/TestComposite22.composite create mode 100644 java/sca/stest/sampleTest/src/main/resources/Test_ASM_6007.composite create mode 100644 java/sca/stest/sampleTest/src/main/resources/Test_ASM_6008.composite create mode 100644 java/sca/stest/sampleTest/src/test/java/client/ASM_6007_TestCase.java create mode 100644 java/sca/stest/sampleTest/src/test/java/client/ASM_6008_TestCase.java (limited to 'java/sca') diff --git a/java/sca/stest/sampleTest/src/main/resources/TestComposite21.composite b/java/sca/stest/sampleTest/src/main/resources/TestComposite21.composite new file mode 100644 index 0000000000..f0d6162e25 --- /dev/null +++ b/java/sca/stest/sampleTest/src/main/resources/TestComposite21.composite @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/sca/stest/sampleTest/src/main/resources/TestComposite22.composite b/java/sca/stest/sampleTest/src/main/resources/TestComposite22.composite new file mode 100644 index 0000000000..79c07fb678 --- /dev/null +++ b/java/sca/stest/sampleTest/src/main/resources/TestComposite22.composite @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Composite11-C2 + + + + + + + + + + diff --git a/java/sca/stest/sampleTest/src/main/resources/Test_ASM_6007.composite b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_6007.composite new file mode 100644 index 0000000000..a67b19a52d --- /dev/null +++ b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_6007.composite @@ -0,0 +1,55 @@ + + + + + + + + + + + + + ASM_6007 + + + + + + + service1 + + + + + + + + service2 + + + diff --git a/java/sca/stest/sampleTest/src/main/resources/Test_ASM_6008.composite b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_6008.composite new file mode 100644 index 0000000000..afc490cb67 --- /dev/null +++ b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_6008.composite @@ -0,0 +1,54 @@ + + + + + + + + + + + + + ASM_6008 + + + + + + + service1 + + + + + + + service2 + + + diff --git a/java/sca/stest/sampleTest/src/test/java/client/ASM_6007_TestCase.java b/java/sca/stest/sampleTest/src/test/java/client/ASM_6007_TestCase.java new file mode 100644 index 0000000000..751a5bd3b2 --- /dev/null +++ b/java/sca/stest/sampleTest/src/test/java/client/ASM_6007_TestCase.java @@ -0,0 +1,45 @@ +/* + * 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_6007_TestCase, which tests that a + * can declare an that is a compatible superset of the + * declared by each promoted by the composite reference + */ +public class ASM_6007_TestCase extends BaseJAXWSTestCase { + + + protected TestConfiguration getTestConfiguration() { + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_6007"; + config.input = "request"; + config.output = "ASM_6007 request service1 operation1 invoked service2 operation1 invoked"; + config.composite = "Test_ASM_6007.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; + } + +} // end class Test_ASM_6007 diff --git a/java/sca/stest/sampleTest/src/test/java/client/ASM_6008_TestCase.java b/java/sca/stest/sampleTest/src/test/java/client/ASM_6008_TestCase.java new file mode 100644 index 0000000000..59bf04bb14 --- /dev/null +++ b/java/sca/stest/sampleTest/src/test/java/client/ASM_6008_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_6008_TestCase, which tests that where a + * has no subelement, and that promotes 2 or more + * s, that the declared on each of the + * s are the same + */ +public class ASM_6008_TestCase extends BaseJAXWSTestCase { + + + protected TestConfiguration getTestConfiguration() { + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_6008"; + config.input = "request"; + config.output = "exception"; + config.composite = "Test_ASM_6008.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; + } + +} // end class Test_ASM_6008 -- cgit v1.2.3