Author: antelder
Date: Wed Mar 3 03:02:19 2010
New Revision: 918311
URL: http://svn.apache.org/viewvc?rev=918311&view=rev
Log:
Add strawman for how the compliance tests as part of the trunk could work
Added:
tuscany/sca-java-2.x/trunk/compliance-tests/ (with props)
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/ (with props)
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/pom.xml
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/main/
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/main/resources/
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/org/
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/org/apache/
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/org/apache/tuscany/
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/org/apache/tuscany/sca/
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/org/apache/tuscany/sca/otest/
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/org/apache/tuscany/sca/otest/TuscanyOSGiRuntimeBridge.java
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/resources/
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/resources/oasis-sca-tests.properties
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/resources/tuscany-oasis-sca-tests-errors.properties
tuscany/sca-java-2.x/trunk/compliance-tests/pom.xml
Propchange: tuscany/sca-java-2.x/trunk/compliance-tests/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Mar 3 03:02:19 2010
@@ -0,0 +1,20 @@
+target
+work
+dojo
+*.iws
+*.ipr
+*.iml
+derby.log
+maven.log
+maven-eclipse.xml
+build.xml
+build-dependency.xml
+velocity.log*
+junit*.properties
+surefire*.properties
+.project
+.classpath
+.settings
+.deployables
+.wtpmodules
+.externalToolBuilders
Propchange: tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Mar 3 03:02:19 2010
@@ -0,0 +1,20 @@
+target
+work
+dojo
+*.iws
+*.ipr
+*.iml
+derby.log
+maven.log
+maven-eclipse.xml
+build.xml
+build-dependency.xml
+velocity.log*
+junit*.properties
+surefire*.properties
+.project
+.classpath
+.settings
+.deployables
+.wtpmodules
+.externalToolBuilders
Added: tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/pom.xml?rev=918311&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/pom.xml (added)
+++ tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/pom.xml Wed Mar
3 03:02:19 2010
@@ -0,0 +1,155 @@
+<?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-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <artifactId>tuscany-compliance-test-assembly</artifactId>
+ <name>Apache Tuscany SCA Specification Compliance Tests Assembly</name>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>oasis-assembly-contributions</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <type>zip</type>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>oasis-assembly-test-runner</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-node-impl</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-deployment</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-node-impl-osgi</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-node-launcher</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-node-launcher-equinox</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-implementation-java-runtime</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-ws-runtime-axis2</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-host-jetty</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.sun.xml.ws</groupId>
+ <artifactId>jaxws-rt</artifactId>
+ <version>2.1.7</version>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.5</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+
+
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ <plugins>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>oasis-assembly-contributions</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <type>zip</type>
+
<outputDirectory>${project.build.directory}/oasis-contributions</outputDirectory>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>oasis-assembly-test-runner</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <type>jar</type>
+ <excludes>oasis-sca-tests.properties</excludes>
+
<outputDirectory>${project.build.directory}/test-classes</outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+</project>
Added:
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/org/apache/tuscany/sca/otest/TuscanyOSGiRuntimeBridge.java
URL:
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/org/apache/tuscany/sca/otest/TuscanyOSGiRuntimeBridge.java?rev=918311&view=auto
==============================================================================
---
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/org/apache/tuscany/sca/otest/TuscanyOSGiRuntimeBridge.java
(added)
+++
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/org/apache/tuscany/sca/otest/TuscanyOSGiRuntimeBridge.java
Wed Mar 3 03:02:19 2010
@@ -0,0 +1,163 @@
+/*
+ * 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.IOException;
+import java.io.InputStream;
+import java.util.Properties;
+
+import org.apache.tuscany.sca.node.Node;
+import org.apache.tuscany.sca.node.equinox.launcher.Contribution;
+import org.apache.tuscany.sca.node.equinox.launcher.ContributionLocationHelper;
+import org.apache.tuscany.sca.node.equinox.launcher.NodeLauncher;
+
+import client.RuntimeBridge;
+import client.TestConfiguration;
+
+
+/**
+ * An implementation of the Runtime Bridge for the Apache Tuscany SCA runtime
(version 2.x)
+ *
+ */
+public class TuscanyOSGiRuntimeBridge implements RuntimeBridge {
+
+ static final String CONTRIBUTION_LOCATION_PROPKEY =
"OASIS_TESTENV_CONTRIBUTION_LOCATION";
+
+ protected NodeLauncher launcher;
+ protected Node node;
+ TestConfiguration testConfiguration = null;
+ protected Properties expectedErrorMessages;
+
+ public TuscanyOSGiRuntimeBridge() {
+ // 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 TestConfiguration getTestConfiguration() {
+ return testConfiguration;
+ }
+
+ public void setTestConfiguration(TestConfiguration testConfiguration) {
+ this.testConfiguration = testConfiguration;
+ }
+
+ public boolean startContribution(String contributionLocation, String[]
contributionNames) throws Exception {
+ try {
+ // Tuscany specific code which starts the contribution(s) holding
the test
+ launcher = NodeLauncher.newInstance();
+
+ Contribution[] contributions = new
Contribution[contributionNames.length];
+ String[] contributionURIs =
getContributionURIs(contributionLocation);
+ for (int i = 0; i < contributions.length; i++) {
+ contributions[i] = new Contribution(contributionNames[i],
contributionURIs[i]);
+ } // end for
+
+ node = launcher.createNode(testConfiguration.getComposite(),
contributions);
+ System.out.println("SCA Node API ClassLoader: " +
node.getClass().getClassLoader());
+ // Start the node
+ node.start();
+ } 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) throws
Exception {
+ String[] locations;
+ locations = testConfiguration.getContributionNames();
+
+ if (locations != null && contributionLocation != null) {
+
+ for (int i = 0; i < locations.length; i++) {
+ String aLocation = contributionLocation.replaceAll("%1",
locations[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 String getContributionLocation(Class<?> testClass) {
+ return
ContributionLocationHelper.getContributionLocation(testConfiguration.getTestClass());
+ } // end method getContributionLocation
+
+ public void checkError(String testName, Throwable ex) throws Throwable {
+ String expectedMessage = expectedErrorMessages.getProperty(testName);
+ String receivedMessage = ex.getMessage();
+
+ if (expectedMessage == null){
+ fail("Null expected error message for test " + testName +
+ "Please add message to oasis-sca-tests-errors.properties");
+ }
+
+ if (receivedMessage == null){
+ fail("Null received error message for test " + testName);
+ }
+
+ int messageStart = receivedMessage.indexOf("] - ");
+
+ if (messageStart < 0){
+ fail("Message separator not found for test " + testName);
+ }
+
+ receivedMessage = receivedMessage.substring(messageStart + 4);
+
+ assertEquals( expectedMessage, receivedMessage );
+
+ return;
+ }
+
+} // end class TuscanyRuntimeBridge
Added:
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java
URL:
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java?rev=918311&view=auto
==============================================================================
---
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java
(added)
+++
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java
Wed Mar 3 03:02:19 2010
@@ -0,0 +1,224 @@
+/*
+ * 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.ContributionLocationHelper;
+import org.apache.tuscany.sca.node.Node;
+import org.apache.tuscany.sca.node.NodeFactory;
+
+import client.RuntimeBridge;
+import client.TestConfiguration;
+
+/**
+ * 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;
+
+ TestConfiguration testConfiguration = null;
+
+ 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 TestConfiguration getTestConfiguration() {
+ return testConfiguration;
+ }
+
+ public void setTestConfiguration(TestConfiguration testConfiguration) {
+ this.testConfiguration = testConfiguration;
+ }
+
+ public boolean startContribution(String contributionLocation, String[]
contributionNames) throws Exception {
+ try {
+ // Tuscany specific code which starts the contribution(s) holding
the test
+ launcher = NodeFactory.newInstance();
+
+ Contribution[] contributions = new
Contribution[contributionNames.length];
+ String[] contributionURIs =
getContributionURIs(contributionLocation);
+ for (int i = 0; i < contributions.length; i++) {
+ contributions[i] = new Contribution(contributionNames[i],
contributionURIs[i]);
+ } // end for
+
+ node = launcher.createNode(testConfiguration.getComposite(),
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) throws
Exception {
+ String[] locations;
+ locations = testConfiguration.getContributionNames();
+
+ if (locations != null && contributionLocation != null) {
+
+ for (int i = 0; i < locations.length; i++) {
+ String aLocation = contributionLocation.replaceAll("%1",
locations[i]);
+ // Looks like bugs in the oasis code that sometimes still uses
jars for some
+ if (aLocation.endsWith("_Java-1.0.zip") &&
!aLocation.endsWith("ASM_8005_Java-1.0.zip")) {
+ aLocation = aLocation.substring(0, aLocation.length()-3) +
"jar";
+ }
+ 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 String getContributionLocation(Class<?> testClass) {
+ return
ContributionLocationHelper.getContributionLocation(testConfiguration.getTestClass());
+ } // end method getContributionLocation
+
+ public void checkError(String testName, Throwable ex) throws Throwable {
+
+ String expectedMessage = expectedErrorMessages.getProperty(testName);
+ String receivedMessage = 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 epected 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) {
+ }
+ }
+
+} // end class TuscanyRuntimeBridge
Added:
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/resources/oasis-sca-tests.properties
URL:
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/resources/oasis-sca-tests.properties?rev=918311&view=auto
==============================================================================
---
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/resources/oasis-sca-tests.properties
(added)
+++
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/resources/oasis-sca-tests.properties
Wed Mar 3 03:02:19 2010
@@ -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-1.0.zip
+
Added:
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/resources/tuscany-oasis-sca-tests-errors.properties
URL:
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/resources/tuscany-oasis-sca-tests-errors.properties?rev=918311&view=auto
==============================================================================
---
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/resources/tuscany-oasis-sca-tests-errors.properties
(added)
+++
tuscany/sca-java-2.x/trunk/compliance-tests/assembly-tests/src/test/resources/tuscany-oasis-sca-tests-errors.properties
Wed Mar 3 03:02:19 2010
@@ -0,0 +1,88 @@
+# 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.
+
+ASM_4002=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- [ASM40003] Duplicate service name: Component = TestComponent1 Service =
Service1
+ASM_4003=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- [ASM40004,ASM50007] Duplicate reference name: Component = TestComponent1
Reference = Reference1
+ASM_4004=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- [ASM40005] Duplicate implementation property name: Component = TestComponent1
Property = propertyName
+ASM_4007=org.apache.tuscany.sca.contribution.processor.ContributionReadException:
[ASM40010] Error: property has both @type and @element attribute values -
propertyName
+ASM_4008=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- [ASM40011] No value configured on a mustSupply property: Component =
TestComponent1 Property = propertyName
+ASM_5004=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestClient] -
[ASM50022] Too many targets on reference: reference1
+ASM_5005=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- [ASM40003] Duplicate service name: Component = TestComponent1 Service =
Service1
+ASM_5006=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- Component type service not found for component service (missing @Remotable
annotation?): Component = TestComponent1 Service = InvalidName
+ASM_5007=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- [ASM40004,ASM50007] Duplicate reference name: Component = TestComponent1
Reference = Reference1
+ASM_5008=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- [ASM50008] Component type reference not found for component reference:
Component = TestComponent1 Reference = InvalidName
+ASM_5009=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001] Duplicate
component name: Composite = {http://docs.oasis-open.org/ns/opencsa/sca/200912}
Component = TestComponent1
+ASM_5010=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- [ASM50004] Component service interface incompatible with implementation
service interface: Component = TestComponent1 Service = Service1
+ASM_5014=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- [ASM50009] Component reference multiplicity incompatible with reference
multiplicity: Component = TestComponent1 Reference = Reference1
+ASM_5023=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1,
Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite11,
Component: Composite11Component1, Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite4,
Component: Composite4Component1] - [ASM50022] Too many targets on reference:
reference1
+ASM_5024=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1,
Reference: Reference1] - Composite
{http://docs.oasis-open.org/ns/opencsa/sca/200912} Component TestComponent1
Reference Reference1 must not specify endpoints using both target attribute and
with a binding child element
+ASM_5027=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- Duplicate component property name: Component = TestComponent1 Property =
serviceName
+ASM_5028=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- Property not found for component property: Component = TestComponent1
Property = randomName
+ASM_5029=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- The property component TestComponent1 property complexType has many values
but its "many" attribute is set to false
+ASM_5030=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_5030,
Artifact: Test_ASM_5030.composite] - ASM50033: value attribute exists for the
property element
+ASM_5035=org.apache.tuscany.sca.contribution.processor.ContributionReadException:
[ASM40010] Error: property has both @type and @element attribute values -
complexType
+ASM_5036=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
TEST_ASM_5036Component1] - [ASM_5036] The property component
TEST_ASM_5036Component1 property complexType has XSD type
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}ComplexType2 while its
component type property has the XSD type
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}ComplexType1
+ASM_5037=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
TEST_ASM_5037Component1] - Property not found for component property: Component
= TEST_ASM_5037Component1 Property = bogusName
+ASM_6001=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_6001,
Artifact: TestDuplicate1.composite] - [ASM_6001] More than one composite with
the same name
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}DuplicateComposite found
in contribution
+ASM_6002=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- [ASM40003] Duplicate service name: Component = TestComponent1 Service =
Service1
+ASM_6003=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1,
Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite17] -
Promoted component service not found: Composite =
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite17 Service
= SpuriousComponent/SpuriousService
+ASM_6005=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- [ASM40004,ASM50007] Duplicate reference name: Component = TestComponent1
Reference = Reference1
+ASM_6006=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1,
Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite20] -
Promoted component reference not found: Composite =
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite20
Reference = Composite20Componentz/Reference1
+ASM_6008=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
TEST_ASM_6008Component1, Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite22] -
Interface of composite reference Reference1 must be compatible with the
interface declared by promoted component reference. Operation not found on
target
+ASM_6012=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
TEST_ASM_6012TestComponent1] - [ASM40005] Duplicate implementation property
name: Component = TEST_ASM_6012TestComponent1 Property = propertyName
+ASM_6016=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1,
Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite30,
Component: TestComponent1, Reference: Reference1] - No target services found
for the component reference to be autowired: Reference1
+ASM_6020=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1,
Reference: Reference1] - No target services found for the component reference
to be autowired: Reference1
+ASM_6021=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
TEST_ASM_6021TestComponent1, Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite31] -
Promoted component service not found: Composite =
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite31 Service
= Not_A_URI_of_a_Component
+ASM_6022=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1,
Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite32,
Component: TestComponent1] - No targets for reference: Composite =
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite32
Reference = Reference1
+ASM_6023=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- [ASM40011] No value configured on a mustSupply property: Component =
TestComponent1 Property = simpleType
+ASM_6024=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- Component implementation not resolved: Component = TestComponent1 Uri =
TestComponent1
+ASM_6025=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001] Duplicate
component name: Composite = {http://docs.oasis-open.org/ns/opencsa/sca/200912}
Component = TestComponent1
+ASM_6028=org.apache.tuscany.sca.contribution.processor.ContributionReadException:
[ASM40010] Error: property has both @type and @element attribute values -
InvalidProperty
+ASM_6029=org.apache.tuscany.sca.contribution.processor.ContributionResolveException:
Error: Composite
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_ASM_6029 can only
include another composite with the identical @local attribute value
+ASM_6030=org.apache.tuscany.sca.contribution.processor.ContributionResolveException:
Error: Composite
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}Invalid_composite_name
is not a valid composite within the domain
+ASM_6031=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1,
Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite39] -
[POL40009] Intent
{http://docs.oasis-open.org/ns/opencsa/sca/200912}suspendsTransaction and
{http://docs.oasis-open.org/ns/opencsa/sca/200912}propagatesTransaction are
mutually exclusive
+ASM_6032=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1,
Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite40] -
[POL40009] Intent
{http://docs.oasis-open.org/ns/opencsa/sca/200912}suspendsTransaction and
{http://docs.oasis-open.org/ns/opencsa/sca/200912}propagatesTransaction are
mutually exclusive
+ASM_6033=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1,
Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite41,
Component: TestComponent1] - [ASM50008] Component type reference not found for
component reference: Component = TestComponent1 Reference = reference1
+ASM_8001=org.apache.tuscany.sca.interfacedef.OverloadedOperationException:
Cannot overload operation operation1 on org.oasisopen.sca.test.Service3 as it
is a @Remotable interface
+ASM_8004=org.apache.tuscany.sca.interfacedef.InvalidCallbackException:
Callback org.oasisopen.sca.test.Service6Callback must be remotable on remotable
interface org.oasisopen.sca.test.Service6
+ASM_8005=org.apache.tuscany.sca.interfacedef.InvalidCallbackException:
Callbackorg.oasisopen.sca.test.Service7Callback must not be remotable on local
interface org.oasisopen.sca.test.Service7
+ASM_8006=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_8006,
Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_ASM_8006] - The
interface.wsdl element has a forward interface with a callback declared in the
WSDL {http://test.sca.oasisopen.org/}Service9Callback and a callback interface
also declared using the callbackInterface attribute
{http://test.sca.oasisopen.org/}Service8Callback but the callback interfaces
are not equal.
+ASM_8007=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent2]
- [ASM50004] Component service interface incompatible with implementation
service interface: Component = TestComponent2 Service = Service1
+ASM_8008=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- Component reference interface incompatible with implementation reference
interface: Component = TestComponent1 Reference = Reference1
+ASM_8009=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
TEST_ASM_8009Component1] - Component reference interface incompatible with
implementation reference interface: Component = TEST_ASM_8009Component1
Reference = Reference1
+ASM_8010=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
TEST_ASM_8010Component2, Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite63] -
Interface of composite service Service1 must be subset of the interface
declared by promoted component service. Callback operation not found on target
+ASM_8011=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1,
Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite62] -
Interface of composite reference Reference1 must be compatible with the
interface declared by promoted component reference. Callback operation not
found on target
+ASM_8012=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
TEST_ASM_8012Component1, Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite64] -
Interface of composite reference Reference1 must be compatible with the
interface declared by promoted component reference.
+ASM_8017=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
TEST_ASM_8017Component1, Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite72] -
Interface of composite service Service1a must be subset of the interface
declared by promoted component service. Callback interface doesn't match
+ASM_8018=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestClient] -
[ASM50004] Component service interface incompatible with implementation service
interface: Component = TestClient Service = TestInvocation
+ASM_8019=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_8019,
Artifact: Test_ASM_8019.composite] - The interface.wsdl interface
{http://test.sca.oasisopen.org/}Service1 element can only have a remotable
attribute with the value "true" as WSDL interface are assumed to be remotable
by default. The value that was found is: false.
+ASM_9002=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- Multiple bindings with the same name for a service: Service = Service1
Binding name = Fred
+ASM_10001=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_10001,
Artifact: META-INF/definitions.xml, Definitions:
jar:file:***ASM_10001-1.0.zip!/META-INF/definitions.xml] - [ASM10001,POL30002]
Duplicate intent {http://docs.oasis-open.org/ns/opencsa/scatests/200903}Fred
found in domain
+ASM_10003=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_10003,
Artifact: META-INF/definitions.xml, Definitions:
jar:file:***ASM_10003-1.0.zip!/META-INF/definitions.xml] - XMLSchema validation
error occured in: Test_ASM_10003.composite ,line = ***, column = ***, Message =
cvc-complex-type.2.4.a: Invalid content was found starting with element
'component'. One of
'{"http://docs.oasis-open.org/ns/opencsa/sca/200912":documentation,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":intent,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":policySet,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":binding,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":bindingType,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":implementationType,
WC[##other:"http://docs.oasis-open.org/ns/opencsa/sca/200912"]}' is expected.
+ASM_12003=org.apache.tuscany.sca.contribution.processor.ContributionResolveException:
Invalid interface when resolving
+ASM_12007=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1,
Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/2009032}TestComposite5,
Component: TestComposite5TestComponent1] - Component type service not found for
component service (missing @Remotable annotation?): Component =
TestComposite5TestComponent1 Service = Service2
+ASM_12008=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
TEST_ASM_12008TestComponent1, Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/2009032}TestComposite5,
Component: TestComposite5TestComponent1] - Component type service not found for
component service (missing @Remotable annotation?): Component =
TestComposite5TestComponent1 Service = Service2
+ASM_12011=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1]
- Component implementation not resolved: Component = TestComponent1 Uri =
TestComponent1
+ASM_12012=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_12012,
Artifact: META-INF/sca-contribution.xml] - XMLSchema validation error occured
in: jar:file:***ASM_12012-1.0.zip!/META-INF/sca-contribution.xml ,line = 16,
column = ***, Message = cvc-complex-type.2.4.a: Invalid content was found
starting with element 'component'. One of
'{"http://docs.oasis-open.org/ns/opencsa/sca/200912":documentation,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":deployable,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":importBase,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":exportBase,
WC[##other:"http://docs.oasis-open.org/ns/opencsa/sca/200912"]}' is expected.
+ASM_13001=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_13001,
Artifact: Test_ASM_13001.composite] - XMLSchema validation error occured in:
Test_ASM_13001.composite ,line = 25, column = ***, Message =
cvc-complex-type.2.4.a: Invalid content was found starting with element
'sevrice'. One of '{"http://docs.oasis-open.org/ns/opencsa/sca/200912":service,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":reference,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":property,
WC[##other:"http://docs.oasis-open.org/ns/opencsa/sca/200912"]}' is expected.
+ASM_13002=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_13002,
Artifact: Test_ASM_13002.composite] - XMLSchema validation error occured in:
Test_ASM_13002.composite ,line = 28, column = ***, Message =
cvc-complex-type.2.4.a: Invalid content was found starting with element
'operation'. One of
'{"http://docs.oasis-open.org/ns/opencsa/sca/200912":binding,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":callback,
WC[##other:"http://docs.oasis-open.org/ns/opencsa/sca/200912"]}' is expected.
+ASM_13003=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_13003,
Artifact: Test_ASM_13003.composite] - XMLSchema validation error occured in:
Test_ASM_13003.composite ,line = 23, column = ***, Message =
cvc-complex-type.2.4.a: Invalid content was found starting with element
'binding.ws'. One of
'{"http://docs.oasis-open.org/ns/opencsa/sca/200912":documentation,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":include,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":service,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":property,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":component,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":reference,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":wire,
WC[##other:"http://docs.oasis-open.org/ns/opencsa/sca/200912"]}' is expected.
+ASM_13004=org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestClient,
Composite:
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestClient_0002,
Component: TestClient_0002TestClient] - [ASM40011] No value configured on a
mustSupply property
+ASM_13005=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_13005,
Artifact: Test_ASM_13005.composite] - XMLSchema validation error occured in:
Test_ASM_13005.composite ,line = 25, column = ***, Message = cvc-elt.2: The
value of {abstract} in the element declaration for 'implementation' must be
false.
+ASM_13006=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_13006,
Artifact: Test_ASM_13006.composite] - XMLSchema validation error occured in:
Test_ASM_13006.composite ,line = 28, column = ***, Message =
cvc-complex-type.3.2.2: Attribute 'callback' is not allowed to appear in
element 'interface.java'.
+ASM_13007=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_13007,
Artifact: Test_ASM_13007.composite] - XMLSchema validation error occured in:
Test_ASM_13007.composite ,line = 29, column = ***, Message =
cvc-complex-type.3.2.2: Attribute 'mulplicity' is not allowed to appear in
element 'reference'.
+ASM_13008=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_13008,
Artifact: Test_ASM_13008.composite] - XMLSchema validation error occured in:
Test_ASM_13008.composite ,line = 40, column = ***, Message =
cvc-complex-type.2.4.a: Invalid content was found starting with element
'operation'. One of
'{"http://docs.oasis-open.org/ns/opencsa/sca/200912":documentation,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":wireFormat,
"http://docs.oasis-open.org/ns/opencsa/sca/200912":operationSelector}' is
expected.
\ No newline at end of file
Added: tuscany/sca-java-2.x/trunk/compliance-tests/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/compliance-tests/pom.xml?rev=918311&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/compliance-tests/pom.xml (added)
+++ tuscany/sca-java-2.x/trunk/compliance-tests/pom.xml Wed Mar 3 03:02:19 2010
@@ -0,0 +1,45 @@
+<?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-sca</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <packaging>pom</packaging>
+ <artifactId>tuscany-compliance-tests</artifactId>
+ <name>Apache Tuscany SCA Compliance Tests</name>
+
+ <repositories>
+ <repository>
+ <!-- OASIS will eventually publish these themselves but for now
they're at my people place -->
+ <id>oasis.contributions</id>
+ <url>http://people.apache.org/~antelder/tuscany/otests/maven</url>
+ </repository>
+ </repositories>
+
+ <modules>
+ <module>assembly-tests</module>
+ </modules>
+
+</project>