summaryrefslogtreecommitdiffstats
path: root/java/sca/stest/sampleTest/src/test/java/client/ASM_6001_TestCase.java
diff options
context:
space:
mode:
authoredwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68>2009-02-11 15:20:17 +0000
committeredwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68>2009-02-11 15:20:17 +0000
commitb948fa187308ba97d2eab2609f3b12eac4078c4e (patch)
treead0ddd44538d70de74ae53281370eb7bb3ecdbeb /java/sca/stest/sampleTest/src/test/java/client/ASM_6001_TestCase.java
parent8f0f2d98b1d748ff91cd33ba991d5bbce243f238 (diff)
Added testcases:
0029, 0030, 0031, 0032, 0033, 0034, 6001, 6002, 6003, 6004 Updated ASM_0028_TestCase.java and BaseJAXWSTestCase.java to deal better with exceptions. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@743360 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--java/sca/stest/sampleTest/src/test/java/client/ASM_6001_TestCase.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/java/sca/stest/sampleTest/src/test/java/client/ASM_6001_TestCase.java b/java/sca/stest/sampleTest/src/test/java/client/ASM_6001_TestCase.java
new file mode 100644
index 0000000000..0f6ca04682
--- /dev/null
+++ b/java/sca/stest/sampleTest/src/test/java/client/ASM_6001_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_6001_TestCase, which tests that where an SCA contribution
+ * contains two <composite/> elements with the same name and same
+ * targetNamespace that an SCA application using that composite does not run
+ * and that the SCA runtime reports an error
+ */
+public class ASM_6001_TestCase extends BaseJAXWSTestCase {
+
+
+ protected TestConfiguration getTestConfiguration() {
+ TestConfiguration config = new TestConfiguration();
+ config.testName = "ASM_6001";
+ config.input = "request";
+ config.output = "exception";
+ config.composite = "Test_ASM_6001.composite";
+ config.testServiceName = "TestClient";
+ config.testClass = ASM_0002_Client.class;
+ config.serviceInterface = TestInvocation.class;
+ return config;
+ }
+
+} // end class Test_ASM_6001