summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms')
-rw-r--r--sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/pom.xml140
-rw-r--r--sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java220
-rw-r--r--sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/resources/jndi.properties119
-rw-r--r--sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/resources/oasis-sca-tests.properties30
-rw-r--r--sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/resources/tuscany-oasis-sca-tests-errors.properties49
5 files changed, 558 insertions, 0 deletions
diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/pom.xml b/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/pom.xml
new file mode 100644
index 0000000000..8d5c055e1e
--- /dev/null
+++ b/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/pom.xml
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-compliance-tests</artifactId>
+ <version>2.0.1</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <artifactId>tuscany-compliance-test-binding-jms</artifactId>
+ <name>Apache Tuscany SCA Specification Compliance Tests Binding JMS</name>
+
+ <dependencies>
+
+ <dependency>
+ <!-- This is only needed to get the module working in Eclipse which doesn't pick it up from the dependency plugin unpack -->
+ <!-- The dependency plugin unpack is needed as presently the surefire plugin wont run tests in a dependency jar -->
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-otests-sca-jms-tests</artifactId>
+ <version>2.0.1</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.ws.security</groupId>
+ <artifactId>wss4j</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.ws.security</groupId>
+ <artifactId>wss4j</artifactId>
+ <version>1.5.11</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-base-runtime</artifactId>
+ <version>2.0.1</version>
+ <type>pom</type>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-jms-runtime</artifactId>
+ <version>2.0.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.activemq</groupId>
+ <artifactId>activemq-all</artifactId>
+ <version>5.2.0</version>
+ </dependency>
+
+ <!-- This is need when running with Sun JDK which gets an unsupported operation exception creating an XMLStreamReader from a DOMSource
+ when Tuscany is writing a property value -->
+ <dependency>
+ <groupId>org.codehaus.woodstox</groupId>
+ <artifactId>wstx-asl</artifactId>
+ <version>3.2.9</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.5</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <finalName>${project.artifactId}</finalName>
+ <plugins>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <argLine>-Xms256m -Xmx1024m</argLine>
+ <excludes>
+ <exclude>**/BJM_6017_1_TestCase.java</exclude> <!-- 6017_1 does work but fails intermitently in a full build which i haven't been able to reproduce or track down -->
+ </excludes>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>oasis-jms-contributions</artifactId>
+ <version>2.0.1</version>
+ <type>zip</type>
+ <outputDirectory>${project.build.directory}/oasis-contributions</outputDirectory>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-otests-sca-jms-tests</artifactId>
+ <version>2.0.1</version>
+ <type>jar</type>
+ <excludes>commons-logging.properties,oasis-sca-tests.properties,tuscany-oasis-sca-tests-errors.properties</excludes>
+ <outputDirectory>${project.build.directory}/test-classes</outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+</project>
diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java b/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java
new file mode 100644
index 0000000000..d9490c641e
--- /dev/null
+++ b/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java
@@ -0,0 +1,220 @@
+/*
+ * 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 org.apache.tuscany.sca.otest;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.fail;
+
+import java.io.BufferedWriter;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Properties;
+
+import org.apache.tuscany.sca.node.Contribution;
+import org.apache.tuscany.sca.node.Node;
+import org.apache.tuscany.sca.node.NodeFactory;
+
+import testClient.TestException_Exception;
+import client.RuntimeBridge;
+
+/**
+ * An implementation of the Runtime Bridge for the Apache Tuscany SCA runtime (version 2.x)
+ *
+ */
+public class TuscanyRuntimeBridge implements RuntimeBridge {
+
+ static final String CONTRIBUTION_LOCATION_PROPKEY = "OASIS_TESTENV_CONTRIBUTION_LOCATION";
+
+ protected NodeFactory launcher;
+ protected Node node;
+ protected Properties expectedErrorMessages;
+
+ public TuscanyRuntimeBridge() {
+ // read test error mapping
+ expectedErrorMessages = new Properties();
+ try {
+ InputStream propertiesStream = this.getClass().getResourceAsStream("/tuscany-oasis-sca-tests-errors.properties");
+ expectedErrorMessages.load(propertiesStream);
+ } catch (IOException e) {
+ System.out.println("Unable to read oasis-sca-tests-errors.properties file");
+ }
+ }
+
+ public boolean startContribution(String compositeName, String contributionLocation, String[] contributionNames) throws Exception {
+ try {
+ // Tuscany specific code which starts the contribution(s) holding the test
+ Properties ps = new Properties();
+ ps.setProperty("defaultScheme", "vm");
+ ps.setProperty("org.apache.tuscany.sca.binding.ws.jaxws.ri.JAXWSBindingProviderFactory.defaultPort", "8080");
+ launcher = NodeFactory.newInstance(ps);
+
+ Contribution[] contributions = new Contribution[contributionNames.length];
+ String[] contributionURIs = getContributionURIs(contributionLocation, contributionNames);
+ for (int i = 0; i < contributions.length; i++) {
+ contributions[i] = new Contribution(contributionNames[i], contributionURIs[i]);
+ } // end for
+
+ node = launcher.createNode(compositeName, contributions);
+ // Start the node
+ node.start();
+
+ // For debugging
+ // print out the composites that have been read in success cases
+ // System.out.println(((NodeImpl)node).dumpDomainComposite());
+ } catch (Exception e) {
+ System.out.println(e.getMessage());
+ e.printStackTrace();
+ throw e;
+ } // end try
+
+ return true;
+ } // end method startContribution
+
+ /**
+ * Gets the location of the Contributions as URIs
+ * @param contributionLocation - a location pattern URI, which contains one or more "%1"
+ * substrings, which are substituted with the name of the contribution to get the URI of
+ * the contribution
+ * @return the contribution locations as an array of Strings
+ */
+ protected String[] getContributionURIs(String contributionLocation, String[] contributionNames) throws Exception {
+ String[] locations = new String[contributionNames.length];
+
+ if (locations != null && contributionLocation != null) {
+
+ for (int i = 0; i < locations.length; i++) {
+ String aLocation = contributionLocation.replaceAll("%1", contributionNames[i]);
+
+ locations[i] = aLocation;
+ } // end for
+ } else {
+ if (locations == null) {
+ // No contribution specified - throw an Exception
+ throw new Exception("Unable to start SCA runtime - no contribution supplied - error");
+ } else {
+ // No contribution location supplied - throw an Exception
+ throw new Exception("Unable to start SCA runtime - no contribution location supplied - error");
+ } // end if
+ } // end if
+
+ return locations;
+ } // end getContributionURI
+
+ public void stopContribution() {
+ if (node != null) {
+ node.stop();
+ } // end if
+ if (launcher != null) {
+ launcher.destroy();
+ } // end if
+ } // end method stopContribution
+
+ public void checkError(String testName, Throwable ex) throws Throwable {
+
+ String expectedMessage = expectedErrorMessages.getProperty(testName);
+ String receivedMessage = getErrorMessage(ex);//ex.getMessage();
+
+ if (expectedMessage == null){
+ writeMissingMessage(testName, ex);
+ fail("Null expected error message for test " + testName +
+ "Please add message to oasis-sca-tests-errors.properties");
+ } // end if
+
+ if (receivedMessage == null){
+ ex.printStackTrace();
+ fail("Null received error message for test " + testName);
+ } // end if
+
+ if (expectedMessage.startsWith("*")) {
+ // allow using * to ignore a message comparison
+ return;
+ }
+
+ // Deal with the case where the message has variable parts within it
+ // marked with the characters ***. Here we tokenize the expected string
+ // and make sure all the individual parts are present in the results string
+ String expectedMessageParts[] = expectedMessage.split("\\*\\*\\*");
+
+ if (expectedMessageParts.length > 1){
+ int foundParts = 0;
+ for(int i = 0; i < expectedMessageParts.length; i++){
+ if (receivedMessage.indexOf(expectedMessageParts[i]) > -1 ){
+ foundParts++;
+ }
+ }
+
+ if (foundParts == expectedMessageParts.length){
+ return;
+ }
+ }
+
+
+ // Deal with the case where the end of the message is variable (eg contains absolute filenames)
+ // and where the only relevant part is the start of the message - in this case the expected
+ // message only contains the stem section which is unchanging...
+ if( receivedMessage.length() > expectedMessage.length() ) {
+ // Truncate the received message to the length of the expected message
+ receivedMessage = receivedMessage.substring(0, expectedMessage.length() );
+ } // end if
+
+ if (!expectedMessage.equals(receivedMessage)) {
+ writeIncorrectMessage(testName, expectedMessage, receivedMessage);
+ }
+
+ assertEquals( expectedMessage, receivedMessage );
+
+ return;
+
+ }
+
+ protected void writeMissingMessage(String testName, Throwable ex) {
+ try {
+ BufferedWriter out = new BufferedWriter(new FileWriter("target/OTestMissingMsgs.txt", true));
+ out.write(testName + "=*");
+ out.newLine();
+ out.close();
+ } catch (IOException e) {
+ }
+ }
+
+ protected void writeIncorrectMessage(String testName, String expected, String received) {
+ try {
+ BufferedWriter out = new BufferedWriter(new FileWriter("target/OTestIncorrectMsgs.txt", true));
+ out.write(testName); out.newLine();
+ out.write(" " + expected); out.newLine();
+ out.write(" " + received); out.newLine();
+ out.close();
+ } catch (IOException e) {
+ }
+ }
+
+ protected String getErrorMessage(Throwable ex) {
+ String errorMessage = null;
+
+ if (ex instanceof TestException_Exception) {
+ TestException_Exception te = (TestException_Exception) ex;
+ errorMessage = te.getFaultInfo().getMessage();
+ } else {
+ errorMessage = ex.getMessage();
+ }
+
+ return errorMessage;
+ }
+} // end class TuscanyRuntimeBridge
diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/resources/jndi.properties b/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/resources/jndi.properties
new file mode 100644
index 0000000000..cb9b1cdc4e
--- /dev/null
+++ b/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/resources/jndi.properties
@@ -0,0 +1,119 @@
+#
+# 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.
+#
+
+# OASIS SCA JMS Binding JNDI properties
+
+# The JNDI naming provider URL and initial factory. Select values for your JMS provider.
+java.naming.provider.url = vm://localhost?broker.persistent=false&broker.useJmx=false
+#java.naming.provider.url = vm://localhost?brokerConfig=xbean:activemq.xml
+java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory
+
+# Additional JNDI configuration, specific to the ActiveMQ JMS provider
+
+# Use the following property to specify the JNDI name the connection factory
+# should appear as.
+connectionFactoryNames = ConnectionFactory,TEST_BJM_3017_CF,TEST_BJM_3018_CF
+
+# Queue names used by JMS test cases
+# Expressed in the form:
+# queue.[jndiName] = [physicalName]
+queue.TEST_BJM_3002_Queue = TEST_BJM_3002_Queue
+queue.TEST_BJM_3003_Queue = TEST_BJM_3003_Queue
+queue.TEST_BJM_3004_Queue = TEST_BJM_3004_Queue
+queue.TEST_BJM_3005_Queue = TEST_BJM_3005_Queue
+queue.TEST_BJM_3007_Receive_Queue = TEST_BJM_3007_Receive_Queue
+queue.TEST_BJM_3007_Service_Queue = TEST_BJM_3007_Service_Queue
+queue.TEST_BJM_3011_Queue =
+# queue.TEST_BJM_3012_Queue = TEST_BJM_3012_Queue
+# queue.TEST_BJM_3014_Queue = TEST_BJM_3014_Queue
+queue.TEST_BJM_3015_Queue = TEST_BJM_3015_Queue
+queue.TEST_BJM_3019_Queue = TEST_BJM_3019_Queue
+queue.TEST_BJM_3020_Queue = TEST_BJM_3020_Queue
+queue.TEST_BJM_3021_Queue = TEST_BJM_3021_Queue
+queue.TEST_BJM_3022_Queue = TEST_BJM_3022_Queue
+queue.TEST_BJM_3023_Queue = TEST_BJM_3023_Queue
+queue.TEST_BJM_3024_Queue = TEST_BJM_3024_Queue
+queue.TEST_BJM_3024_REF_Queue = TEST_BJM_3024_REF_Queue
+queue.TEST_BJM_3025_Queue = TEST_BJM_3025_Queue
+queue.TEST_BJM_3025_REF_Queue = TEST_BJM_3025_REF_Queue
+queue.TEST_BJM_3026_Queue = TEST_BJM_3026_Queue
+queue.TEST_BJM_3029_Queue = TEST_BJM_3029_Queue
+queue.TEST_BJM_3031_Queue = TEST_BJM_3031_Queue
+queue.TEST_BJM_3034_Queue = TEST_BJM_3034_Queue
+queue.TEST_BJM_4001_Queue = TEST_BJM_4001_Queue
+queue.TEST_BJM_4002_Queue = TEST_BJM_4002_Queue
+queue.TEST_BJM_4003_Queue = TEST_BJM_4003_Queue
+queue.TEST_BJM_4003_Service_Queue = TEST_BJM_4003_Service_Queue
+queue.TEST_BJM_4004_Queue = TEST_BJM_4004_Queue
+queue.TEST_BJM_4005_Queue = TEST_BJM_4005_Queue
+queue.TEST_BJM_4006_Service_Queue = TEST_BJM_4006_Service_Queue
+queue.TEST_BJM_4006_Reference_Queue = TEST_BJM_4006_Reference_Queue
+queue.TEST_BJM_4008_Queue = TEST_BJM_4008_Queue
+queue.TEST_BJM_4009_Queue = TEST_BJM_4009_Queue
+queue.TEST_BJM_4010_Queue = TEST_BJM_4010_Queue
+queue.TEST_BJM_4011_Queue = TEST_BJM_4011_Queue
+queue.TEST_BJM_5001_Queue = TEST_BJM_5001_Queue
+queue.TEST_BJM_5002_Queue = TEST_BJM_5002_Queue
+queue.TEST_BJM_6001_Service_Queue = TEST_BJM_6001_Service_Queue
+queue.TEST_BJM_6001_Reference_Queue = TEST_BJM_6001_Reference_Queue
+queue.TEST_BJM_6002_Service_Queue = TEST_BJM_6002_Service_Queue
+queue.TEST_BJM_6002_Reference_Queue = TEST_BJM_6002_Reference_Queue
+queue.TEST_BJM_6003_Receive_Queue = TEST_BJM_6003_Receive_Queue
+queue.TEST_BJM_6003_Response_Queue = TEST_BJM_6003_Response_Queue
+queue.TEST_BJM_6003_Service_Queue = TEST_BJM_6003_Service_Queue
+queue.TEST_BJM_6004_Receive_Queue = TEST_BJM_6004_Receive_Queue
+queue.TEST_BJM_6004_Send_Queue = TEST_BJM_6004_Send_Queue
+queue.TEST_BJM_6004_Response_Queue = TEST_BJM_6004_Response_Queue
+queue.TEST_BJM_6005_Receive_Queue = TEST_BJM_6005_Receive_Queue
+queue.TEST_BJM_6005_Send_Queue = TEST_BJM_6005_Send_Queue
+queue.TEST_BJM_6006_Send_Queue = TEST_BJM_6006_Send_Queue
+queue.TEST_BJM_6007_Queue = TEST_BJM_6007_Queue
+queue.TEST_BJM_6007_Receive_Queue = TEST_BJM_6007_Receive_Queue
+queue.TEST_BJM_6008_Queue = TEST_BJM_6008_Queue
+queue.TEST_BJM_6008_Receive_Queue = TEST_BJM_6008_Receive_Queue
+queue.TEST_BJM_6009_Queue = TEST_BJM_6009_Queue
+queue.TEST_BJM_6010_Queue = TEST_BJM_6010_Queue
+queue.TEST_BJM_6011_Service_Queue = TEST_BJM_6011_Service_Queue
+queue.TEST_BJM_6011_Reference_Queue = TEST_BJM_6011_Reference_Queue
+queue.TEST_BJM_6011_Callback_Queue = TEST_BJM_6011_Callback_Queue
+queue.TEST_BJM_6012_Service_Queue = TEST_BJM_6012_Service_Queue
+queue.TEST_BJM_6012_Reference_Queue = TEST_BJM_6012_Reference_Queue
+queue.TEST_BJM_6012_Callback_Queue = TEST_BJM_6012_Callback_Queue
+queue.TEST_BJM_6013_Service_Queue = TEST_BJM_6013_Service_Queue
+queue.TEST_BJM_6013_Reference_Queue = TEST_BJM_6013_Reference_Queue
+queue.TEST_BJM_6013_Response_Queue = TEST_BJM_6013_Response_Queue
+queue.TEST_BJM_6013_Callback_Queue = TEST_BJM_6013_Callback_Queue
+queue.TEST_BJM_6014_Service_Queue = TEST_BJM_6014_Service_Queue
+queue.TEST_BJM_6014_Reference_Queue = TEST_BJM_6014_Reference_Queue
+queue.TEST_BJM_6014_Callback_Queue = TEST_BJM_6014_Callback_Queue
+queue.TEST_BJM_6015_Service_Queue = TEST_BJM_6015_Service_Queue
+queue.TEST_BJM_6015_CB_Binding_Queue = TEST_BJM_6015_CB_Binding_Queue
+queue.TEST_BJM_6015_SCD_Prop_Queue = TEST_BJM_6015_SCD_Prop_Queue
+queue.TEST_BJM_6015_CB_ReplyTo_Queue = TEST_BJM_6015_CB_ReplyTo_Queue
+queue.TEST_BJM_6016_Service_Queue = TEST_BJM_6016_Service_Queue
+queue.TEST_BJM_6016_Reply_Queue = TEST_BJM_6016_Reply_Queue
+queue.TEST_BJM_6017_Service_Queue = TEST_BJM_6017_Service_Queue
+queue.TEST_BJM_6017_CB_Binding_Queue = TEST_BJM_6017_CB_Binding_Queue
+
+queue.Service1 = Service1_Queue
+queue.AlreadyExists = AlreadyExists_Queue
+
+# Topic names used by JMS test cases
+# Expressed in the form:
+# topic.[jndiName] = [physicalName]
+topic.TEST_BJM_3014_Topic = TEST_BJM_3014_Topic
+topic.TEST_BJM_3015_Topic = TEST_BJM_3015_Topic \ No newline at end of file
diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/resources/oasis-sca-tests.properties b/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/resources/oasis-sca-tests.properties
new file mode 100644
index 0000000000..dc3296ae8c
--- /dev/null
+++ b/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/resources/oasis-sca-tests.properties
@@ -0,0 +1,30 @@
+# 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.
+
+# OASIS SCA Assembly test properties
+# The implementation type to use for Assembly test suite
+# org.oasis.sca.tests.assembly.lang=BPEL
+org.oasis.sca.tests.assembly.lang=Java
+
+# The class to use as the Runtime Bridge for the SCA runtime under test
+#org.oasis.sca.tests.assembly.runtime_bridge=org.apache.tuscany.sca.otest.TuscanyOSGiRuntimeBridge
+org.oasis.sca.tests.assembly.runtime_bridge=org.apache.tuscany.sca.otest.TuscanyRuntimeBridge
+
+# The location of the contributions for the test suite
+# %1 represents the placement of the name of each contribution into the location URI
+org.oasis.sca.tests.assembly.contribution.location=target/oasis-contributions/%1/target/%1.zip
+
diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/resources/tuscany-oasis-sca-tests-errors.properties b/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/resources/tuscany-oasis-sca-tests-errors.properties
new file mode 100644
index 0000000000..a743483ddb
--- /dev/null
+++ b/sca-java-2.x/tags/2.0.1-RC1/testing/compliance-tests/binding-jms/src/test/resources/tuscany-oasis-sca-tests-errors.properties
@@ -0,0 +1,49 @@
+# Copyright(C) OASIS(R) 2010. All Rights Reserved.
+# OASIS trademark, IPR and other policies apply.
+#
+# Detailed Tuscany error messages for SCA JMS Binding testcases, where the testcase causes an
+# exception either in initialization or at runtime
+#
+BJM_3001=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3001, Artifact: Test_BJM_3001.composite] - URI must start with the scheme 'jms:jndi:' or 'jms:queue:' or 'jms:topic:' for uri: http://test.sca.oasisopen.org/
+BJM_3002_1=Test service got an exception during execution: org.apache.tuscany.sca.binding.jms.JMSBindingException JMS Destination DOES_NOT_EXIST_Queue not found but create mode of "never" while registering binding Reference1 invoker
+BJM_3002_2=Test service got an exception during execution: org.apache.tuscany.sca.binding.jms.JMSBindingException org.apache.tuscany.sca.binding.jms.JMSBindingException: org.apache.tuscany.sca.binding.jms.JMSBindingException: connection factory not found: DOES_NOT_EXIST
+BJM_3011=org.apache.tuscany.sca.binding.jms.JMSBindingException: JMS Destination TEST_BJM_3011_Queue already exists but has create mode of "always" while registering service Service1 listener
+BJM_3011A=org.apache.tuscany.sca.binding.jms.JMSBindingException: Incorrect resource type for ActivationSpec: org.apache.activemq.command.ActiveMQQueue
+BJM_3011C=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3011C, Artifact: Test_BJM_3011C.composite] - When connection factory "AlreadyExists" element is present then a destination name must also be defined
+BJM_3011D=org.apache.tuscany.sca.binding.jms.JMSBindingException: JMS Destination AlreadyExists already exists but has create mode of "always" while registering service Service1 listener
+BJM_3012A=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3012A, Artifact: Test_BJM_3012A.composite] - Must specify jndiName attribute when create mode is ''ifNotExist''
+BJM_3012C=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3012C, Artifact: Test_BJM_3012C.composite] - Missing ConnectionFactory Name
+BJM_3012D=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3012D, Artifact: Test_BJM_3012D.composite] - Must specify jndiName attribute when create mode is ''ifNotExist''
+BJM_3013A=org.apache.tuscany.sca.binding.jms.JMSBindingException: Can not create ActivationSpec
+BJM_3013C=org.apache.tuscany.sca.binding.jms.JMSBindingException: connection factory not found: TEST_BJM_3013_CF
+BJM_3013D=org.apache.tuscany.sca.binding.jms.JMSBindingException: JMS Destination TEST_BJM_3013_Queue not found with create mode of "ifNotExist" while registering service Service1 listener
+BJM_3014=org.apache.tuscany.sca.binding.jms.JMSBindingException: JMS Destination TEST_BJM_3014_Queue expecting type of queue but found topic while registering service Service1 listener
+BJM_3014A=org.apache.tuscany.sca.binding.jms.JMSBindingException: Incorrect resource type for ActivationSpec: org.apache.activemq.command.ActiveMQTopic
+BJM_3014C=org.apache.tuscany.sca.binding.jms.JMSBindingException: JNDI resource 'TEST_BJM_3014_Topic' is not a JMS ConnectionFactory
+BJM_3014D=org.apache.tuscany.sca.binding.jms.JMSBindingException: JMS Destination TEST_BJM_3014_Topic expecting type of queue but found topic while registering service Service1 listener
+BJM_3015Aa=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3015Aa, Artifact: Test_BJM_3015Aa.composite] - Must specify jndiName attribute when create mode is ''never''
+BJM_3015Ab=org.apache.tuscany.sca.binding.jms.JMSBindingException: ActivationSpec specifies create mode of "never" but resource does not exist at jndiName DoesntExist
+BJM_3015Ac=org.apache.tuscany.sca.binding.jms.JMSBindingException: Incorrect resource type for ActivationSpec: org.apache.activemq.command.ActiveMQQueue
+BJM_3015Ca=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3015Ca, Artifact: Test_BJM_3015Ca.composite] - Missing ConnectionFactory Name
+BJM_3015Cb=org.apache.tuscany.sca.binding.jms.JMSBindingException: connection factory not found: DoesntExist
+BJM_3015Cc=org.apache.tuscany.sca.binding.jms.JMSBindingException: JNDI resource 'TEST_BJM_3015_Queue' is not a JMS ConnectionFactory
+BJM_3015Da=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3015Da, Artifact: Test_BJM_3015Da.composite] - Must specify jndiName attribute when create mode is ''never''
+BJM_3015Db=org.apache.tuscany.sca.binding.jms.JMSBindingException: JMS Destination DoesntExist not found but create mode of "never" while registering service Service1 listener
+BJM_3015Dc=org.apache.tuscany.sca.binding.jms.JMSBindingException: JMS Destination TEST_BJM_3015_Topic expecting type of queue but found topic while registering service Service1 listener
+BJM_3017=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3017, Artifact: Test_BJM_3017.composite] - XMLSchema validation error occured in: Test_BJM_3017.composite ,line = ***, column = ***, Message = cvc-complex-type.2.4.a: Invalid content was found starting with element 'activationSpec'. One of '{"http://docs.oasis-open.org/ns/opencsa/sca/200912":response, "http://docs.oasis-open.org/ns/opencsa/sca/200912":headers, "http://docs.oasis-open.org/ns/opencsa/sca/200912":messageSelection, "http://docs.oasis-open.org/ns/opencsa/sca/200912":resourceAdapter, "http://docs.oasis-open.org/ns/opencsa/sca/200912":operationProperties, "http://docs.oasis-open.org/ns/opencsa/sca/200912":extensions}' is expected.
+BJM_3018=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3018, Artifact: Test_BJM_3018.composite] - When connection factory "TEST_BJM_3018_CF" element is present then a destination name must also be defined
+BJM_3019=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3019, Artifact: Test_BJM_3019.composite] - Activation spec name TEST_BJM_3019_AS must match destination name TEST_BJM_3019_Queue_XXX
+BJM_3020=Test service got an exception during execution: org.apache.tuscany.sca.binding.jms.JMSBindingException Activation spec can not be specified on an SCA reference binding
+BJM_3021=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3021, Artifact: Test_BJM_3021.composite] - XMLSchema validation error occured in: Test_BJM_3021.composite ,line = ***, column = ***, Message = cvc-complex-type.2.4.d: Invalid content was found starting with element 'activationSpec'. No child element is expected at this point.
+BJM_3022=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3022, Artifact: Test_BJM_3022.composite] - Activation spec name TEST_BJM_3022_Response_AS must match destination name TEST_BJM_3022_Response_Queue
+BJM_3023=org.apache.tuscany.sca.runtime.ActivationException: org.apache.tuscany.sca.runtime.ActivationException: org.apache.tuscany.sca.binding.jms.JMSBindingException: [BJM30023] response/activationSpec element MUST NOT be present when the binding is being used for an SCA service
+BJM_3029=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3029, Artifact: Test_BJM_3029.composite] - the selectedOperation attribute MUST be unique across the containing binding.jms element
+BJM_3034=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3034, Artifact: Test_BJM_3034.composite] - Destination TEST_BJM_3034_Queue can not be specified when URI jms:jndi:TEST_BJM_3034_Queue is present
+BJM_3036=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3036, Artifact: Test_BJM_3036.composite] - XMLSchema validation error occured in: Test_BJM_3036.composite ,line = ***, column = ***, Message = cvc-complex-type.3.2.2: Attribute 'invalidAttribute' is not allowed to appear in element 'binding.jms'
+BJM_3037A=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3037A, Artifact: Test_BJM_3037A.composite] - A JNDI name must be specified when an ActivationSpec has a create mode of "always"
+BJM_3037C=org.oasisopen.sca.ServiceRuntimeException: [Contribution: BJM_3037C, Artifact: Test_BJM_3037C.composite] - Missing ConnectionFactory Name
+BJM_3037D=org.apache.tuscany.sca.binding.jms.JMSBindingException: JMS Destination Service1 already exists but has create mode of "always" while registering service Service1 listener
+BJM_4004=Message = org.apache.tuscany.sca.binding.jms.JMSBindingException: java.io.IOException: org.xml.sax.SAXParseException***Content is not allowed in prolog
+BJM_4011=Message = org.apache.tuscany.sca.binding.jms.JMSBindingException: Cannot determine service operation
+BJM_6016=Message = org.apache.tuscany.sca.binding.jms.JMSBindingException: No destination specified for reference Service4
+