[jboss-svn-commits] JBL Code SVN: r37720 - in labs/jbosstm/trunk/XTS/localjunit: WS-C and 18 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Nov 11 06:11:42 EST 2011


Author: zhfeng
Date: 2011-11-11 06:11:41 -0500 (Fri, 11 Nov 2011)
New Revision: 37720

Added:
   labs/jbosstm/trunk/XTS/localjunit/WS-C/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/pom.xml
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc/tests/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc/tests/TestUtil.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestContextFactory.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestInitialisation.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestRegistrar.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestUtil11.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/Activation.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/ActivationService.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/ActivationServiceException.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/Endurance.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/Registration.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/RegistrationService.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/RegistrationServiceException.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/TestActivationCoordinatorProcessor.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/TestRegistrationCoordinatorProcessor.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/WarDeployment.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/ActivationServiceExceptionTest.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/ActivationServiceTest.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/ActivationTest.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/EnduranceTest.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/RegistrationServiceExceptionTest.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/RegistrationServiceTest.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/RegistrationTest.java
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/resources/
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/resources/arquillian.xml
   labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/resources/web.xml
Log:
JBTM-954 update to convert ws-c11 unit tests


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C
___________________________________________________________________
Added: svn:ignore
   + target
.classpath
.project
.settings


Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/pom.xml
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/pom.xml	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/pom.xml	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated by the @authors tag. All rights reserved. See the copyright.txt in the distribution 
+	for a full listing of individual contributors. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU Lesser 
+	General Public License, v. 2.1. This program is distributed in the hope that it will be useful, but WITHOUT A WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
+	PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License, v.2.1 along with this distribution; if not, write to the Free 
+	Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<groupId>org.jboss.narayana.xts</groupId>
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>localjunit-ws-c11-tests</artifactId>
+	<packaging>jar</packaging>
+	<name>ws-c11 unit tests</name>
+	<description>ws-c11 unit tests</description>
+	<version>5.0.0.M2-SNAPSHOT</version>
+	<build>
+		<plugins>
+			<plugin>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<version>2.3.1</version>
+				<configuration>
+					<source>1.6</source>
+					<target>1.6</target>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+	<dependencies>
+		<dependency>
+			<groupId>org.jboss.narayana.xts</groupId>
+			<artifactId>jbossxts</artifactId>
+			<version>5.0.0.M2-SNAPSHOT</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>4.8.1</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>javax.inject</groupId>
+			<artifactId>javax.inject</artifactId>
+			<version>1</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.jboss.arquillian.junit</groupId>
+			<artifactId>arquillian-junit-container</artifactId>
+			<version>1.0.0.CR5</version>
+			<scope>test</scope>
+		</dependency>
+	</dependencies>
+	<profiles>
+		<profile>
+			<!-- The default profile skips all tests, though you can tune it 
+			to run just unit tests based on a custom pattern -->
+			<!-- Seperate profiles are provided for running all tests, including 
+			Arquillian tests that execute in the specified container -->
+		 <id>default</id>
+		 <activation>
+			 <activeByDefault>true</activeByDefault>
+		 </activation>
+		 <build>
+			 <plugins>
+				 <plugin>
+					 <artifactId>maven-surefire-plugin</artifactId>
+					 <version>2.7.2</version>
+					 <configuration>
+						 <skip>true</skip>
+					 </configuration>
+				 </plugin>
+			 </plugins>
+		 </build>
+		 <dependencies>
+			 <dependency>
+				 <groupId>org.jboss.as</groupId>
+				 <artifactId>jboss-as-arquillian-container-managed</artifactId>
+				 <version>7.0.2.Final</version>
+				 <scope>test</scope>
+			 </dependency>
+		 </dependencies>
+	 </profile>
+ </profiles>
+</project>

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc/tests/TestUtil.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc/tests/TestUtil.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc/tests/TestUtil.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. 
+ * See the copyright.txt in the distribution for a full listing 
+ * of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+/*
+ * Copyright (c) 2002, 2003, Arjuna Technologies Limited.
+ *
+ * TestUtil.java
+ */
+
+package com.arjuna.wsc.tests;
+
+import javax.xml.namespace.QName;
+
+public class TestUtil
+{
+    public static final String COORDINATION_TYPE                           = "http://wsc.example.org/coordination-type";
+    public static final String UNKNOWN_COORDINATION_TYPE                   = "http://wsc.example.org/unknown-coordination-type";
+    public static final String INVALID_CREATE_PARAMETERS_COORDINATION_TYPE = "http://wsc.example.org/invalid-create-parameters-coordination-type";
+
+    public static final String PROTOCOL_IDENTIFIER                         = "http://wsc.example.org/protocol-identifier";
+    public static final String UNKNOWN_PROTOCOL_IDENTIFIER                 = "http://wsc.example.org/unknown-protocol-identifier";
+    public static final String ALREADY_REGISTERED_PROTOCOL_IDENTIFIER      = "http://wsc.example.org/already-registered-protocol-identifier";
+    public static final String INVALID_PROTOCOL_PROTOCOL_IDENTIFIER        = "http://wsc.example.org/invalid-protocol-protocol-identifier";
+    public static final String INVALID_STATE_PROTOCOL_IDENTIFIER           = "http://wsc.example.org/invalid-state-protocol-identifier";
+    public static final String NO_ACTIVITY_PROTOCOL_IDENTIFIER             = "http://wsc.example.org/no-activity-protocol-identifier";
+
+    public static final String PROTOCOL_PARTICIPANT_SERVICE                = "http://wsc.example.org/protocol-participant-service";
+    public static final String PROTOCOL_COORDINATOR_SERVICE                = "http://wsc.example.org/protocol-coordinator-service";
+
+    public static final String TEST_EXTENSION_VALUE                        = "TestExtensionValue";
+    /**
+     * The Namespace.
+     */
+    public static final String TEST_NAMESPACE = "http://example.org/test" ;
+    /**
+     * The namespace prefix.
+     */
+    public static final String TEST_PREFIX = "test" ;
+    /**
+     * The ExtensionValue element.
+     */
+    public static final String TEST_ELEMENT_EXTENSION_VALUE = "ExtensionValue" ;
+    /**
+     * The ExtensionValue QName.
+     */
+    public static final QName TEST_ELEMENT_EXTENSION_VALUE_QNAME = new QName(TEST_NAMESPACE, TEST_ELEMENT_EXTENSION_VALUE, TEST_PREFIX) ;
+}


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc/tests/TestUtil.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestContextFactory.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestContextFactory.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestContextFactory.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,107 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. 
+ * See the copyright.txt in the distribution for a full listing 
+ * of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+/*
+ * Copyright (c) 2002, 2003, Arjuna Technologies Limited.
+ *
+ * TestContextFactory.java
+ */
+
+package com.arjuna.wsc11.tests;
+
+import com.arjuna.webservices11.ServiceRegistry;
+import com.arjuna.webservices11.wscoor.CoordinationConstants;
+import com.arjuna.wsc11.ContextFactory;
+import com.arjuna.wsc.InvalidCreateParametersException;
+import com.arjuna.wsc.tests.TestUtil;
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType;
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContext;
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.Expires;
+
+import javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder;
+import javax.xml.ws.wsaddressing.W3CEndpointReference;
+import javax.xml.soap.SOAPFactory;
+import javax.xml.soap.SOAPElement;
+import javax.xml.soap.SOAPException;
+
+public class TestContextFactory implements ContextFactory
+{
+    public TestContextFactory(String coordinationType)
+    {
+        _identifier          = 0;
+        _coordinationType    = coordinationType;
+    }
+
+    public void install(final String coordinationTypeURI)
+    {
+    }
+
+    public CoordinationContext create(final String coordinationTypeURI,
+        final Long expires, final CoordinationContextType currentContext, boolean isSecure)
+        throws InvalidCreateParametersException
+    {
+        if (coordinationTypeURI.equals(TestUtil.INVALID_CREATE_PARAMETERS_COORDINATION_TYPE)) {
+            throw new InvalidCreateParametersException();
+        }
+
+        final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ;
+        final String registrationURI = serviceRegistry.getServiceURI(CoordinationConstants.REGISTRATION_SERVICE_NAME) ;
+        final W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
+        builder.serviceName(CoordinationConstants.REGISTRATION_SERVICE_QNAME);
+        builder.endpointName(CoordinationConstants.REGISTRATION_ENDPOINT_QNAME);
+        builder.address(registrationURI);
+        W3CEndpointReference registrationService = builder.build();
+
+        CoordinationContext testCoordinationContext = new CoordinationContext();
+        CoordinationContext.Identifier identifier = new CoordinationContext.Identifier();
+        identifier.setValue(Integer.toString(nextIdentifier()));
+        testCoordinationContext.setIdentifier(identifier);
+        if (expires != null && expires.longValue() > 0) {
+            Expires expiresInstance = new Expires();
+            expiresInstance.setValue(expires);
+            testCoordinationContext.setExpires(expiresInstance);
+        }
+        testCoordinationContext.setCoordinationType(_coordinationType) ;
+        testCoordinationContext.setRegistrationService(registrationService) ;
+
+        try {
+            SOAPFactory factory = SOAPFactory.newInstance();
+            SOAPElement element = factory.createElement(TestUtil.TEST_ELEMENT_EXTENSION_VALUE_QNAME);
+            element.addTextNode(TestUtil.TEST_EXTENSION_VALUE);
+            testCoordinationContext.getAny().add(element);
+        } catch (SOAPException e) {
+            // TODO log error here
+        }
+
+        return testCoordinationContext;
+    }
+
+    public void uninstall(final String coordinationTypeURI)
+    {
+    }
+
+    private synchronized int nextIdentifier()
+    {
+        return _identifier++ ;
+    }
+
+    private int           _identifier          = 0;
+    private String        _coordinationType    = null;
+}
\ No newline at end of file


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestContextFactory.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestInitialisation.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestInitialisation.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestInitialisation.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. 
+ * See the copyright.txt in the distribution for a full listing 
+ * of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package com.arjuna.wsc11.tests;
+
+import javax.servlet.ServletContextEvent;
+import javax.servlet.ServletContextListener;
+
+import com.arjuna.wsc11.ContextFactoryMapper;
+import com.arjuna.wsc11.RegistrarMapper;
+import com.arjuna.wsc.tests.TestUtil;
+
+/**
+ * Initialise the test.
+ * @author kevin
+ */
+public class TestInitialisation implements ServletContextListener
+{
+    /**
+     * The context has been initialized.
+     * @param servletContextEvent The servlet context event.
+     */
+    public void contextInitialized(final ServletContextEvent servletContextEvent)
+    {
+        final ContextFactoryMapper contextFactoryMapper = ContextFactoryMapper.getMapper() ;
+        final TestContextFactory testContextFactory = new TestContextFactory(TestUtil.COORDINATION_TYPE) ;
+
+        contextFactoryMapper.addContextFactory(TestUtil.COORDINATION_TYPE, testContextFactory) ;
+        contextFactoryMapper.addContextFactory(TestUtil.INVALID_CREATE_PARAMETERS_COORDINATION_TYPE, testContextFactory) ;
+
+        final RegistrarMapper registrarMapper = RegistrarMapper.getFactory() ;
+        final TestRegistrar testRegistrar = new TestRegistrar() ;
+
+        registrarMapper.addRegistrar(TestUtil.PROTOCOL_IDENTIFIER, testRegistrar) ;
+        registrarMapper.addRegistrar(TestUtil.ALREADY_REGISTERED_PROTOCOL_IDENTIFIER, testRegistrar) ;
+        registrarMapper.addRegistrar(TestUtil.INVALID_PROTOCOL_PROTOCOL_IDENTIFIER, testRegistrar) ;
+        registrarMapper.addRegistrar(TestUtil.INVALID_STATE_PROTOCOL_IDENTIFIER, testRegistrar) ;
+        registrarMapper.addRegistrar(TestUtil.NO_ACTIVITY_PROTOCOL_IDENTIFIER, testRegistrar) ;
+    }
+
+    /**
+     * The context is about to be destroyed.
+     * @param servletContextEvent The servlet context event.
+     */
+    public void contextDestroyed(final ServletContextEvent servletContextEvent)
+    {
+        final ContextFactoryMapper contextFactoryMapper = ContextFactoryMapper.getMapper() ;
+        contextFactoryMapper.removeContextFactory(TestUtil.COORDINATION_TYPE);
+        contextFactoryMapper.removeContextFactory(TestUtil.INVALID_CREATE_PARAMETERS_COORDINATION_TYPE);
+
+        final RegistrarMapper registrarMapper = RegistrarMapper.getFactory() ;
+        registrarMapper.removeRegistrar(TestUtil.PROTOCOL_IDENTIFIER);
+        registrarMapper.removeRegistrar(TestUtil.ALREADY_REGISTERED_PROTOCOL_IDENTIFIER);
+        registrarMapper.removeRegistrar(TestUtil.INVALID_PROTOCOL_PROTOCOL_IDENTIFIER);
+        registrarMapper.removeRegistrar(TestUtil.INVALID_STATE_PROTOCOL_IDENTIFIER);
+        registrarMapper.removeRegistrar(TestUtil.NO_ACTIVITY_PROTOCOL_IDENTIFIER);
+    }
+}
\ No newline at end of file


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestInitialisation.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestRegistrar.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestRegistrar.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestRegistrar.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. 
+ * See the copyright.txt in the distribution for a full listing 
+ * of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+/*
+ * Copyright (c) 2002, 2003, Arjuna Technologies Limited.
+ *
+ * TestRegistrar.java
+ */
+
+package com.arjuna.wsc11.tests;
+
+import com.arjuna.webservices11.wsarj.InstanceIdentifier;
+import com.arjuna.wsc.AlreadyRegisteredException;
+import com.arjuna.wsc.InvalidProtocolException;
+import com.arjuna.wsc.InvalidStateException;
+import com.arjuna.wsc.NoActivityException;
+import com.arjuna.wsc11.Registrar;
+import com.arjuna.wsc.tests.TestUtil;
+
+import javax.xml.ws.wsaddressing.W3CEndpointReference;
+
+public class TestRegistrar implements Registrar
+{
+    public void install(String protocolIdentifier)
+    {
+    }
+
+    public W3CEndpointReference register(W3CEndpointReference participantProtocolService, String protocolIdentifier, InstanceIdentifier instanceIdentifier, boolean isSecure)
+        throws AlreadyRegisteredException, InvalidProtocolException, InvalidStateException, NoActivityException
+    {
+        if (protocolIdentifier.equals(TestUtil.ALREADY_REGISTERED_PROTOCOL_IDENTIFIER))
+            throw new AlreadyRegisteredException();
+        else if (protocolIdentifier.equals(TestUtil.INVALID_PROTOCOL_PROTOCOL_IDENTIFIER))
+            throw new InvalidProtocolException();
+        else if (protocolIdentifier.equals(TestUtil.INVALID_STATE_PROTOCOL_IDENTIFIER))
+            throw new InvalidStateException();
+        else if (protocolIdentifier.equals(TestUtil.NO_ACTIVITY_PROTOCOL_IDENTIFIER))
+            throw new NoActivityException();
+
+        return TestUtil11.getProtocolCoordinatorEndpoint(instanceIdentifier.getInstanceIdentifier());
+    }
+
+    public void uninstall(String protocolIdentifier)
+    {
+    }
+}
\ No newline at end of file


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestRegistrar.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestUtil11.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestUtil11.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestUtil11.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,97 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. 
+ * See the copyright.txt in the distribution for a full listing 
+ * of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+/*
+ * Copyright (c) 2002, 2003, Arjuna Technologies Limited.
+ *
+ * TestUtil.java
+ */
+
+package com.arjuna.wsc11.tests;
+
+import com.arjuna.webservices11.wscoor.CoordinationConstants;
+import com.arjuna.webservices11.wsarj.InstanceIdentifier;
+import com.arjuna.wsc.tests.TestUtil;
+import org.jboss.jbossts.xts.environment.XTSPropertyManager;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.wsaddressing.W3CEndpointReference;
+import javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder;
+
+public class TestUtil11
+{
+    final private static String TAG = "wsc";
+    final private static String NAMESPACE = "http://wsc.example.org/";
+    final private static String PROTOCOL_PARTICIPANT_ENDPOINT_NAME ="ProtocolParticipantEndpoint";
+    final private static String PROTOCOL_PARTICIPANT_SERVICE_NAME ="ProtocolParticipantService";
+    final private static String PROTOCOL_COORDINATOR_ENDPOINT_NAME ="ProtocolCoordinatorEndpoint";
+    final private static String PROTOCOL_COORDINATOR_SERVICE_NAME ="ProtocolCoordinatorService";
+
+    final private static String bindHost = XTSPropertyManager.getWSCEnvironmentBean().getBindAddress11();
+
+    final public static String activationCoordinatorService = "http://" + bindHost + ":8080/ws-c11/ActivationService";
+    final public static String registrationCoordinatorService = "http://" + bindHost + ":8080/ws-c11/RegistrationService";
+
+    final public static QName PROTOCOL_PARTICIPANT_SERVICE_QNAME = new QName(NAMESPACE, PROTOCOL_PARTICIPANT_SERVICE_NAME, TAG);
+    final public static QName PROTOCOL_PARTICIPANT_ENDPOINT_QNAME = new QName(NAMESPACE, PROTOCOL_PARTICIPANT_ENDPOINT_NAME, TAG);
+    final public static QName PROTOCOL_COORDINATOR_SERVICE_QNAME = new QName(NAMESPACE, PROTOCOL_COORDINATOR_SERVICE_NAME, TAG);
+    final public static QName PROTOCOL_COORDINATOR_ENDPOINT_QNAME = new QName(NAMESPACE, PROTOCOL_COORDINATOR_ENDPOINT_NAME, TAG);
+
+    public static W3CEndpointReference getActivationEndpoint() {
+        W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
+        builder.serviceName(CoordinationConstants.ACTIVATION_SERVICE_QNAME);
+        builder.endpointName(CoordinationConstants.ACTIVATION_ENDPOINT_QNAME);
+        builder.address(activationCoordinatorService);
+        return builder.build();
+    }
+
+    public static W3CEndpointReference getRegistrationEndpoint(String identifier) {
+        W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
+        builder.serviceName(CoordinationConstants.REGISTRATION_SERVICE_QNAME);
+        builder.endpointName(CoordinationConstants.REGISTRATION_ENDPOINT_QNAME);
+        builder.address(registrationCoordinatorService);
+        if (identifier != null) {
+            InstanceIdentifier.setEndpointInstanceIdentifier(builder, identifier);
+        }
+        return builder.build();
+    }
+
+    public static W3CEndpointReference getProtocolCoordinatorEndpoint(String identifier) {
+        W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
+        builder.serviceName(PROTOCOL_COORDINATOR_SERVICE_QNAME);
+        builder.endpointName(PROTOCOL_COORDINATOR_ENDPOINT_QNAME);
+        builder.address(TestUtil.PROTOCOL_COORDINATOR_SERVICE);
+        if (identifier != null) {
+            InstanceIdentifier.setEndpointInstanceIdentifier(builder, identifier);
+        }
+        return builder.build();
+    }
+
+    public static W3CEndpointReference getProtocolParticipantEndpoint(String identifier) {
+        W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
+        builder.serviceName(PROTOCOL_PARTICIPANT_SERVICE_QNAME);
+        builder.endpointName(PROTOCOL_PARTICIPANT_ENDPOINT_QNAME);
+        builder.address(TestUtil.PROTOCOL_PARTICIPANT_SERVICE);
+        if (identifier != null) {
+            InstanceIdentifier.setEndpointInstanceIdentifier(builder, identifier);
+        }
+        return builder.build();
+    }
+}
\ No newline at end of file


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/TestUtil11.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/Activation.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/Activation.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/Activation.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,248 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. 
+ * See the copyright.txt in the distribution for a full listing 
+ * of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+/*
+ * Copyright (c) 2002, 2003, Arjuna Technologies Limited.
+ *
+ * ActivationTestCase.java
+ */
+
+package com.arjuna.wsc11.tests.arq;
+
+import static org.junit.Assert.*;
+
+import com.arjuna.webservices11.ServiceRegistry;
+import com.arjuna.webservices11.wsaddr.AddressingHelper;
+import org.jboss.ws.api.addressing.MAP;
+import com.arjuna.webservices11.wscoor.client.ActivationCoordinatorClient;
+import com.arjuna.webservices11.wscoor.processors.ActivationCoordinatorProcessor;
+import com.arjuna.wsc.tests.TestUtil;
+import com.arjuna.wsc11.tests.TestUtil11;
+import com.arjuna.wsc11.tests.arq.TestActivationCoordinatorProcessor.CreateCoordinationContextDetails;
+
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.*;
+
+import javax.inject.Named;
+import javax.xml.ws.wsaddressing.W3CEndpointReference;
+
+ at Named
+public class Activation
+{
+    private ActivationCoordinatorProcessor origActivationCoordinatorProcessor ;
+
+    private TestActivationCoordinatorProcessor testActivationCoordinatorProcessor = new TestActivationCoordinatorProcessor() ;
+
+    public void setUp()
+        throws Exception
+    {
+        origActivationCoordinatorProcessor = ActivationCoordinatorProcessor.setCoordinator(testActivationCoordinatorProcessor) ;
+        ServiceRegistry.getRegistry() ;
+    }
+
+    public void testRequestWithoutExpiresWithoutCurrentContext()
+        throws Exception
+    {
+        final String messageId = "testRequestWithoutExpiresWithoutCurrentContext" ;
+        final String coordinationType = TestUtil.COORDINATION_TYPE ;
+        final Long expires = null ;
+        final CoordinationContext coordinationContext = null ;
+
+        executeRequestTest(messageId, coordinationType, expires, coordinationContext) ;
+    }
+
+    public void testRequestWithExpiresWithoutCurrentContext()
+        throws Exception
+    {
+        final String messageId = "testRequestWithExpiresWithoutCurrentContext" ;
+        final String coordinationType = TestUtil.COORDINATION_TYPE ;
+        final Long expires = new Long(123456L) ;
+        final CoordinationContext coordinationContext = null ;
+
+        executeRequestTest(messageId, coordinationType, expires, coordinationContext) ;
+    }
+
+    public void testRequestWithoutExpiresWithCurrentContextWithoutExpires()
+        throws Exception
+    {
+        final String messageId = "testRequestWithoutExpiresWithCurrentContextWithoutExpires" ;
+        final String coordinationType = TestUtil.COORDINATION_TYPE ;
+        final Long expires = null ;
+        final CoordinationContext coordinationContext = new CoordinationContext() ;
+        coordinationContext.setCoordinationType(coordinationType) ;
+        CoordinationContextType.Identifier identifier = new CoordinationContextType.Identifier();
+        identifier.setValue(TestUtil.PROTOCOL_IDENTIFIER);
+        coordinationContext.setIdentifier(identifier) ;
+        W3CEndpointReference registrationService = TestUtil11.getRegistrationEndpoint(identifier.getValue());
+        coordinationContext.setRegistrationService(registrationService) ;
+
+        executeRequestTest(messageId, coordinationType, expires, coordinationContext) ;
+    }
+
+    public void testRequestWithoutExpiresWithCurrentContextWithExpires()
+        throws Exception
+    {
+        final String messageId = "testRequestWithoutExpiresWithCurrentContextWithExpires" ;
+        final String coordinationType = TestUtil.COORDINATION_TYPE ;
+        final Long expires = null ;
+        final CoordinationContext coordinationContext = new CoordinationContext() ;
+        coordinationContext.setCoordinationType(coordinationType) ;
+        CoordinationContextType.Identifier identifier = new CoordinationContextType.Identifier();
+        identifier.setValue(TestUtil.PROTOCOL_IDENTIFIER);
+        coordinationContext.setIdentifier(identifier) ;
+        Expires expiresInstance = new Expires();
+        expiresInstance.setValue(123456L);
+        coordinationContext.setExpires(expiresInstance);
+        W3CEndpointReference registrationService = TestUtil11.getRegistrationEndpoint(identifier.getValue());
+        coordinationContext.setRegistrationService(registrationService) ;
+
+        executeRequestTest(messageId, coordinationType, expires, coordinationContext) ;
+    }
+
+    public void testRequestWithExpiresWithCurrentContextWithoutExpires()
+        throws Exception
+    {
+        final String messageId = "testRequestWithExpiresWithCurrentContextWithoutExpires" ;
+        final String coordinationType = TestUtil.COORDINATION_TYPE ;
+        final Long expires = new Long(123456L) ;
+        final CoordinationContext coordinationContext = new CoordinationContext() ;
+        coordinationContext.setCoordinationType(coordinationType) ;
+        CoordinationContextType.Identifier identifier = new CoordinationContextType.Identifier();
+        identifier.setValue(TestUtil.PROTOCOL_IDENTIFIER);
+        coordinationContext.setIdentifier(identifier) ;
+        W3CEndpointReference registrationService = TestUtil11.getRegistrationEndpoint(identifier.getValue());
+        coordinationContext.setRegistrationService(registrationService) ;
+
+        executeRequestTest(messageId, coordinationType, expires, coordinationContext) ;
+    }
+
+    public void testRequestWithExpiresWithCurrentContextWithExpires()
+        throws Exception
+    {
+        final String messageId = "testRequestWithExpiresWithCurrentContextWithExpires" ;
+        final String coordinationType = TestUtil.COORDINATION_TYPE ;
+        final Long expires = new Long(123456L) ;
+        final CoordinationContext coordinationContext = new CoordinationContext() ;
+        coordinationContext.setCoordinationType(coordinationType) ;
+        CoordinationContextType.Identifier identifier = new CoordinationContextType.Identifier();
+        identifier.setValue(TestUtil.PROTOCOL_IDENTIFIER);
+        coordinationContext.setIdentifier(identifier) ;
+        Expires expiresInstance = new Expires();
+        expiresInstance.setValue(1234567L);
+        coordinationContext.setExpires(expiresInstance);
+        W3CEndpointReference registrationService = TestUtil11.getRegistrationEndpoint(identifier.getValue());
+        coordinationContext.setRegistrationService(registrationService) ;
+
+        executeRequestTest(messageId, coordinationType, expires, coordinationContext) ;
+    }
+
+    private void executeRequestTest(final String messageId, final String coordinationType, final Long expires, final CoordinationContext coordinationContext)
+        throws Exception
+    {
+        final MAP map = AddressingHelper.createRequestContext(TestUtil11.activationCoordinatorService, messageId) ;
+        Expires expiresInstance;
+        if (expires == null) {
+            expiresInstance = null;
+        } else {
+            expiresInstance = new Expires();
+            expiresInstance.setValue(expires.longValue());
+        }
+        CreateCoordinationContextResponseType createCoordinationContextResponseType;
+
+        createCoordinationContextResponseType =
+                ActivationCoordinatorClient.getClient().sendCreateCoordination(map, coordinationType, expiresInstance, coordinationContext) ;
+
+        final CreateCoordinationContextDetails details = testActivationCoordinatorProcessor.getCreateCoordinationContextDetails(messageId, 10000) ;
+        final CreateCoordinationContextType requestCreateCoordinationContext = details.getCreateCoordinationContext() ;
+        final MAP requestMAP = details.getMAP() ;
+
+        assertNotNull(requestMAP.getTo());
+        assertEquals(requestMAP.getTo(), TestUtil11.activationCoordinatorService);
+        // we don't care about the reply to field --  this is an RPC style message
+        // assertNotNull(requestMAP.getReplyTo());
+        // assertTrue(AddressingHelper.isNoneReplyTo(requestMAP));
+        assertNotNull(requestMAP.getMessageID());
+        assertEquals(requestMAP.getMessageID(), messageId);
+
+        if (expires == null)
+        {
+            assertNull(requestCreateCoordinationContext.getExpires()) ;
+        }
+        else
+        {
+            assertNotNull(requestCreateCoordinationContext.getExpires()) ;
+            assertEquals(expires.longValue(), requestCreateCoordinationContext.getExpires().getValue());
+        }
+        if (coordinationContext == null)
+        {
+            assertNull(requestCreateCoordinationContext.getCurrentContext()) ;
+        }
+        else
+        {
+            assertNotNull(requestCreateCoordinationContext.getCurrentContext()) ;
+            assertEquals(requestCreateCoordinationContext.getCurrentContext().getIdentifier().getValue(),
+                coordinationContext.getIdentifier().getValue()) ;
+            if (coordinationContext.getExpires() == null)
+            {
+                assertNull(requestCreateCoordinationContext.getCurrentContext().getExpires()) ;
+            }
+            else
+            {
+                assertNotNull(requestCreateCoordinationContext.getCurrentContext().getExpires()) ;
+                assertEquals(requestCreateCoordinationContext.getCurrentContext().getExpires().getValue(),
+                    coordinationContext.getExpires().getValue()) ;
+            }
+            assertNotNull(requestCreateCoordinationContext.getCurrentContext().getIdentifier());
+            assertEquals(requestCreateCoordinationContext.getCurrentContext().getIdentifier().getValue(),
+                coordinationContext.getIdentifier().getValue()) ;
+        }
+        assertNotNull(requestCreateCoordinationContext.getCoordinationType());
+        assertEquals(requestCreateCoordinationContext.getCoordinationType(), coordinationType);
+
+        // make sure we got a sensible response
+
+        checkResponse(coordinationType, expiresInstance, createCoordinationContextResponseType);
+    }
+
+    public void checkResponse(final String coordinationType, final Expires expiresInstance,
+                              final CreateCoordinationContextResponseType createCoordinationContextResponseType)
+        throws Exception
+    {
+        CoordinationContext outContext = createCoordinationContextResponseType.getCoordinationContext();
+
+        assertNotNull(outContext);
+        assertEquals(coordinationType, outContext.getCoordinationType());
+        if (expiresInstance != null) {
+            assertNotNull(outContext.getExpires());
+            assertEquals(expiresInstance.getValue(), outContext.getExpires().getValue());
+        } else {
+            assertNull(outContext.getExpires());
+        }
+
+        assertNotNull(outContext.getRegistrationService());
+    }
+
+    public void tearDown()
+        throws Exception
+    {
+        ActivationCoordinatorProcessor.setCoordinator(origActivationCoordinatorProcessor) ;
+        origActivationCoordinatorProcessor = null ;
+        testActivationCoordinatorProcessor = null ;
+    }
+}
\ No newline at end of file


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/Activation.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/ActivationService.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/ActivationService.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/ActivationService.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,80 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. 
+ * See the copyright.txt in the distribution for a full listing 
+ * of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+/*
+ * Copyright (c) 2002, 2003, Arjuna Technologies Limited.
+ *
+ * ActivationServiceTestCase.java
+ */
+
+package com.arjuna.wsc11.tests.arq;
+
+import static org.junit.Assert.*;
+
+import javax.inject.Named;
+
+import com.arjuna.wsc.InvalidCreateParametersException;
+import com.arjuna.wsc.tests.TestUtil;
+import com.arjuna.wsc11.ActivationCoordinator;
+import com.arjuna.wsc11.tests.TestUtil11;
+
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType;
+
+ at Named
+public class ActivationService
+{
+    public void testKnownCoordinationType()
+        throws Exception
+    {
+        final String messageID = "testKnownCoordinationType" ;
+        final String coordinationTypeURI = TestUtil.COORDINATION_TYPE ;
+
+        try
+        {
+            final CoordinationContextType coordinationContext = ActivationCoordinator.createCoordinationContext(TestUtil11.activationCoordinatorService, messageID, coordinationTypeURI, null, null) ;
+
+            assertNotNull(coordinationContext);
+            assertNotNull(coordinationContext.getCoordinationType()) ;
+            assertEquals(TestUtil.COORDINATION_TYPE, coordinationContext.getCoordinationType());
+            assertNotNull(coordinationContext.getRegistrationService()) ;
+        }
+        catch (final Throwable th)
+        {
+            fail("Unexpected exception: " + th);
+        }
+    }
+
+    public void testUnknownCoordinationType()
+        throws Exception
+    {
+        final String messageID = "testUnknownCoordinationType" ;
+        final String coordinationTypeURI = TestUtil.UNKNOWN_COORDINATION_TYPE ;
+        try
+        {
+        	  ActivationCoordinator.createCoordinationContext(TestUtil11.activationCoordinatorService, messageID, coordinationTypeURI, null, null) ;
+            fail("Expected exception: InvalidCreateParametersException");
+        }
+        catch (final InvalidCreateParametersException icpe) {} // Ignore, expected
+        catch (final Throwable th)
+        {
+            fail("Expected exception: InvalidCreateParametersException");
+        }
+    }
+}
\ No newline at end of file


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/ActivationService.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/ActivationServiceException.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/ActivationServiceException.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/ActivationServiceException.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. 
+ * See the copyright.txt in the distribution for a full listing 
+ * of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+/*
+ * Copyright (c) 2002, 2003, Arjuna Technologies Limited.
+ *
+ * ActivationServiceExceptionTestCase.java
+ */
+
+package com.arjuna.wsc11.tests.arq;
+
+import javax.inject.Named;
+
+import static org.junit.Assert.*;
+
+import com.arjuna.wsc.InvalidCreateParametersException;
+import com.arjuna.wsc.tests.TestUtil;
+import com.arjuna.wsc11.ActivationCoordinator;
+import com.arjuna.wsc11.tests.TestUtil11;
+
+ at Named
+public class ActivationServiceException
+{
+    public void testInvalidCreateParametersException()
+        throws Exception
+    {
+        final String messageID = "testInvalidCreateParametersException" ;
+        final String coordinationTypeURI = TestUtil.INVALID_CREATE_PARAMETERS_COORDINATION_TYPE ;
+        try
+        {
+            ActivationCoordinator.createCoordinationContext(TestUtil11.activationCoordinatorService, messageID, coordinationTypeURI, null, null) ;
+            fail("Expected exception: InvalidCreateParametersException");
+        }
+        catch (final InvalidCreateParametersException icpe) {} // Ignore, expected
+        catch (final Throwable th)
+        {
+            fail("Expected exception: InvalidCreateParametersException");
+        }
+    }
+}
\ No newline at end of file


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/ActivationServiceException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/Endurance.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/Endurance.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/Endurance.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,306 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. 
+ * See the copyright.txt in the distribution for a full listing 
+ * of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+/*
+ * Copyright (c) 2002, 2003, Arjuna Technologies Limited.
+ *
+ * EnduranceTestCase.java
+ */
+
+package com.arjuna.wsc11.tests.arq;
+
+import static org.junit.Assert.*;
+
+import com.arjuna.webservices11.wsaddr.AddressingHelper;
+import org.jboss.ws.api.addressing.MAP;
+import com.arjuna.webservices11.wsarj.ArjunaContext;
+import com.arjuna.webservices11.wscoor.client.ActivationCoordinatorClient;
+import com.arjuna.webservices11.wscoor.processors.ActivationCoordinatorProcessor;
+import com.arjuna.webservices11.wscoor.processors.RegistrationCoordinatorProcessor;
+import com.arjuna.wsc.*;
+import com.arjuna.wsc.tests.TestUtil;
+import com.arjuna.wsc11.ActivationCoordinator;
+import com.arjuna.wsc11.RegistrationCoordinator;
+import com.arjuna.wsc11.tests.TestUtil11;
+import com.arjuna.wsc11.tests.arq.TestActivationCoordinatorProcessor.CreateCoordinationContextDetails;
+import com.arjuna.wsc11.tests.arq.TestRegistrationCoordinatorProcessor.RegisterDetails;
+
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.*;
+
+import javax.inject.Named;
+import javax.xml.ws.wsaddressing.W3CEndpointReference;
+
+ at Named
+public class Endurance
+{
+    private ActivationCoordinatorProcessor origActivationCoordinatorProcessor ;
+    private RegistrationCoordinatorProcessor origRegistrationCoordinatorProcessor ;
+
+    private TestActivationCoordinatorProcessor testActivationCoordinatorProcessor = new TestActivationCoordinatorProcessor() ;
+
+    private TestRegistrationCoordinatorProcessor testRegistrationCoordinatorProcessor = new TestRegistrationCoordinatorProcessor() ;
+
+    private static final long TEST_DURATION = 30 * 1000;
+
+    public void setUp()
+        throws Exception
+    {
+        origActivationCoordinatorProcessor = ActivationCoordinatorProcessor.setCoordinator(testActivationCoordinatorProcessor) ;
+
+        origRegistrationCoordinatorProcessor = RegistrationCoordinatorProcessor.setCoordinator(testRegistrationCoordinatorProcessor) ;
+    }
+
+    public void testCreateCoordinationContextRequest()
+        throws Exception
+    {
+        long startTime = System.currentTimeMillis();
+
+        int dialogIdentifierNumber = 0;
+        while ((System.currentTimeMillis() - startTime) < TEST_DURATION)
+        {
+            doCreateCoordinationContextRequest(Integer.toString(dialogIdentifierNumber));
+            dialogIdentifierNumber++;
+        }
+    }
+
+    public void testCreateCoordinationContextError()
+        throws Exception
+    {
+        long startTime = System.currentTimeMillis();
+
+        int dialogIdentifierNumber = 0;
+        while ((System.currentTimeMillis() - startTime) < TEST_DURATION)
+        {
+            doCreateCoordinationContextError(Integer.toString(dialogIdentifierNumber));
+            dialogIdentifierNumber++;
+        }
+    }
+
+    public void testRegisterRequest()
+        throws Exception
+    {
+        long startTime = System.currentTimeMillis();
+
+        int dialogIdentifierNumber = 0;
+        while ((System.currentTimeMillis() - startTime) < TEST_DURATION)
+        {
+            doRegisterRequest(Integer.toString(dialogIdentifierNumber));
+            dialogIdentifierNumber++;
+        }
+    }
+
+    public void testRegisterError()
+        throws Exception
+    {
+        long startTime = System.currentTimeMillis();
+
+        int dialogIdentifierNumber = 0;
+        while ((System.currentTimeMillis() - startTime) < TEST_DURATION)
+        {
+            doRegisterError(Integer.toString(dialogIdentifierNumber), dialogIdentifierNumber % 3);
+            dialogIdentifierNumber++;
+        }
+    }
+
+    public void testEachInTurn()
+        throws Exception
+    {
+        long startTime = System.currentTimeMillis();
+
+        int count                  = 0;
+        int dialogIdentifierNumber = 0;
+        while ((System.currentTimeMillis() - startTime) < TEST_DURATION)
+        {
+            if (count == 0)
+                doCreateCoordinationContextRequest(Integer.toString(dialogIdentifierNumber));
+            else if (count == 1)
+                doCreateCoordinationContextError(Integer.toString(dialogIdentifierNumber));
+            else if (count == 2)
+                doRegisterRequest(Integer.toString(dialogIdentifierNumber));
+            else
+                doRegisterError(Integer.toString(dialogIdentifierNumber), (dialogIdentifierNumber / 4) % 4);
+
+            count = (count + 1) % 4;
+            dialogIdentifierNumber++;
+        }
+    }
+
+    public void doCreateCoordinationContextRequest(final String messageId)
+        throws Exception
+    {
+        final String coordinationType = TestUtil.COORDINATION_TYPE ;
+        final MAP map = AddressingHelper.createRequestContext(TestUtil11.activationCoordinatorService, messageId) ;
+        CreateCoordinationContextResponseType response =
+                ActivationCoordinatorClient.getClient().sendCreateCoordination(map, coordinationType, null, null) ;
+
+        final CreateCoordinationContextDetails details = testActivationCoordinatorProcessor.getCreateCoordinationContextDetails(messageId, 10000) ;
+        final CreateCoordinationContextType requestCreateCoordinationContext = details.getCreateCoordinationContext() ;
+        final MAP requestMap = details.getMAP() ;
+
+        assertEquals(requestMap.getTo(), TestUtil11.activationCoordinatorService);
+        assertEquals(requestMap.getMessageID(), messageId);
+
+        assertNull(requestCreateCoordinationContext.getExpires()) ;
+        assertNull(requestCreateCoordinationContext.getCurrentContext()) ;
+        assertEquals(requestCreateCoordinationContext.getCoordinationType(), coordinationType);
+
+        CoordinationContext context = response.getCoordinationContext();
+        assertNotNull(context);
+        assertNull(context.getExpires());
+        assertEquals(context.getCoordinationType(), coordinationType);
+        assertNotNull(context.getIdentifier());
+    }
+
+    public void doCreateCoordinationContextError(final String messageId)
+        throws Exception
+    {
+        final String coordinationType = TestUtil.INVALID_CREATE_PARAMETERS_COORDINATION_TYPE;
+        try {
+            ActivationCoordinator.createCoordinationContext(TestUtil11.activationCoordinatorService, messageId, coordinationType, null, null) ;
+        } catch (InvalidCreateParametersException icpe) {
+            final CreateCoordinationContextDetails details = testActivationCoordinatorProcessor.getCreateCoordinationContextDetails(messageId, 10000) ;
+            final CreateCoordinationContextType requestCreateCoordinationContext = details.getCreateCoordinationContext() ;
+            final MAP requestMap = details.getMAP() ;
+            assertEquals(requestMap.getTo(), TestUtil11.activationCoordinatorService);
+            assertEquals(requestMap.getMessageID(), messageId);
+
+            assertNull(requestCreateCoordinationContext.getExpires()) ;
+            assertNull(requestCreateCoordinationContext.getCurrentContext()) ;
+            assertEquals(requestCreateCoordinationContext.getCoordinationType(), coordinationType);
+            return;
+        }
+        fail("expected invalid create parameters exception");
+    }
+
+    public void doRegisterRequest(final String messageId)
+        throws Exception
+    {
+        final String protocolIdentifier = TestUtil.PROTOCOL_IDENTIFIER ;
+        final W3CEndpointReference participantProtocolService = TestUtil11.getProtocolParticipantEndpoint("participant");
+        final CoordinationContextType coordinationContext = new CoordinationContextType() ;
+        CoordinationContextType.Identifier identifierInstance = new CoordinationContextType.Identifier();
+        coordinationContext.setCoordinationType(TestUtil.COORDINATION_TYPE) ;
+        coordinationContext.setIdentifier(identifierInstance) ;
+        identifierInstance.setValue("identifier");
+        coordinationContext.setRegistrationService(TestUtil11.getRegistrationEndpoint(identifierInstance.getValue())) ;
+
+        W3CEndpointReference coordinator = RegistrationCoordinator.register(coordinationContext, messageId, participantProtocolService, protocolIdentifier) ;
+
+        final RegisterDetails details = testRegistrationCoordinatorProcessor.getRegisterDetails(messageId, 10000) ;
+        final RegisterType requestRegister = details.getRegister() ;
+        final MAP requestMap = details.getMAP() ;
+        final ArjunaContext requestArjunaContext = details.getArjunaContext() ;
+
+        assertEquals(requestMap.getTo(), TestUtil11.registrationCoordinatorService);
+        assertEquals(requestMap.getMessageID(), messageId);
+
+        assertNotNull(requestArjunaContext) ;
+        assertEquals(requestArjunaContext.getInstanceIdentifier().getInstanceIdentifier(), identifierInstance.getValue()) ;
+
+        assertEquals(protocolIdentifier, requestRegister.getProtocolIdentifier()) ;
+        assertNotNull(protocolIdentifier, requestRegister.getParticipantProtocolService()) ;
+
+        assertNotNull(coordinator);
+    }
+
+    public void doRegisterError(final String messageId, int count)
+        throws Exception
+    {
+        final String protocolIdentifier;
+        final W3CEndpointReference participantProtocolService = TestUtil11.getProtocolParticipantEndpoint("participant");
+        final CoordinationContextType coordinationContext = new CoordinationContextType() ;
+        CoordinationContextType.Identifier identifierInstance = new CoordinationContextType.Identifier();
+        coordinationContext.setCoordinationType(TestUtil.COORDINATION_TYPE) ;
+        coordinationContext.setIdentifier(identifierInstance) ;
+        identifierInstance.setValue("identifier");
+        coordinationContext.setRegistrationService(TestUtil11.getRegistrationEndpoint(identifierInstance.getValue())) ;
+
+        W3CEndpointReference coordinator = null;
+
+        switch (count) {
+            case 0:
+                protocolIdentifier = TestUtil.INVALID_PROTOCOL_PROTOCOL_IDENTIFIER;
+                try {
+                    coordinator = RegistrationCoordinator.register(coordinationContext, messageId, participantProtocolService, protocolIdentifier) ;
+                } catch (InvalidProtocolException ipe) {
+                }
+                if (coordinator != null) {
+                    fail("expected invalid protocol exception");
+                }
+                break;
+            case 1:
+                protocolIdentifier = TestUtil.INVALID_STATE_PROTOCOL_IDENTIFIER;
+                try {
+                    coordinator = RegistrationCoordinator.register(coordinationContext, messageId, participantProtocolService, protocolIdentifier) ;
+                } catch (InvalidStateException ise) {
+                }
+                if (coordinator != null) {
+                    fail("expected invalid state exception");
+                }
+                break;
+            case 3:
+                protocolIdentifier = TestUtil.NO_ACTIVITY_PROTOCOL_IDENTIFIER;
+                try {
+                    coordinator = RegistrationCoordinator.register(coordinationContext, messageId, participantProtocolService, protocolIdentifier) ;
+                } catch (CannotRegisterException cre) {
+                }
+                if (coordinator != null) {
+                    fail("expected cannot register exception");
+                }
+                break;
+            default:
+                protocolIdentifier = TestUtil.ALREADY_REGISTERED_PROTOCOL_IDENTIFIER;
+                try {
+                    coordinator = RegistrationCoordinator.register(coordinationContext, messageId, participantProtocolService, protocolIdentifier) ;
+                } catch (CannotRegisterException cre) {
+                }
+                if (coordinator != null) {
+                    fail("expected cannot register exception");
+                }
+                break;
+        }
+
+        final RegisterDetails details = testRegistrationCoordinatorProcessor.getRegisterDetails(messageId, 10000) ;
+        final RegisterType requestRegister = details.getRegister() ;
+        final MAP requestMap = details.getMAP() ;
+        final ArjunaContext requestArjunaContext = details.getArjunaContext() ;
+
+        assertEquals(requestMap.getTo(), TestUtil11.registrationCoordinatorService);
+        assertEquals(requestMap.getMessageID(), messageId);
+
+        assertNotNull(requestArjunaContext) ;
+        assertEquals(requestArjunaContext.getInstanceIdentifier().getInstanceIdentifier(), identifierInstance.getValue()); ;
+
+        assertEquals(protocolIdentifier, requestRegister.getProtocolIdentifier()) ;
+        assertNotNull(protocolIdentifier, requestRegister.getParticipantProtocolService()) ;
+    }
+
+    public void tearDown()
+        throws Exception
+    {
+        ActivationCoordinatorProcessor.setCoordinator(origActivationCoordinatorProcessor) ;
+        origActivationCoordinatorProcessor = null ;
+        testActivationCoordinatorProcessor = null ;
+
+        RegistrationCoordinatorProcessor.setCoordinator(origRegistrationCoordinatorProcessor) ;
+        origRegistrationCoordinatorProcessor = null ;
+        testRegistrationCoordinatorProcessor = null ;
+    }
+}
\ No newline at end of file


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/Endurance.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/Registration.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/Registration.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/Registration.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,113 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. 
+ * See the copyright.txt in the distribution for a full listing 
+ * of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+/*
+ * Copyright (c) 2002, 2003, Arjuna Technologies Limited.
+ *
+ * RegistrationTestCase.java
+ */
+
+package com.arjuna.wsc11.tests.arq;
+
+import static org.junit.Assert.*;
+
+import com.arjuna.webservices11.ServiceRegistry;
+import org.jboss.ws.api.addressing.MAP;
+import com.arjuna.webservices11.wsarj.ArjunaContext;
+import com.arjuna.webservices11.wsarj.InstanceIdentifier;
+import com.arjuna.webservices11.wscoor.CoordinationConstants;
+import com.arjuna.webservices11.wscoor.client.WSCOORClient;
+import com.arjuna.webservices11.wscoor.processors.RegistrationCoordinatorProcessor;
+import com.arjuna.wsc11.tests.TestUtil11;
+import com.arjuna.wsc11.tests.arq.TestRegistrationCoordinatorProcessor.RegisterDetails;
+
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.RegisterType;
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.RegistrationPortType;
+
+import javax.inject.Named;
+import javax.xml.ws.wsaddressing.W3CEndpointReference;
+
+ at Named
+public class Registration
+{
+    private RegistrationCoordinatorProcessor origRegistrationCoordinatorProcessor ;
+
+    private TestRegistrationCoordinatorProcessor testRegistrationCoordinatorProcessor = new TestRegistrationCoordinatorProcessor() ;
+
+    public void setUp()
+        throws Exception
+    {
+        origRegistrationCoordinatorProcessor = RegistrationCoordinatorProcessor.setCoordinator(testRegistrationCoordinatorProcessor) ;
+        ServiceRegistry.getRegistry();
+    }
+
+    public void testRequestWithoutInstanceIdentifier()
+        throws Exception
+    {
+        executeRequest("testRequestWithoutInstanceIdentifier", null) ;
+    }
+
+    public void testRequestWithInstanceIdentifier()
+        throws Exception
+    {
+        executeRequest("testRequestWithInstanceIdentifier", new InstanceIdentifier("identifier")) ;
+    }
+
+    private void executeRequest(final String messageId, final InstanceIdentifier instanceIdentifier)
+        throws Exception
+    {
+        final String protocolIdentifier = "http://foo.example.org/bar" ;
+        final W3CEndpointReference participantProtocolEndpoint = TestUtil11.getProtocolParticipantEndpoint("participant");
+        String identifier = (instanceIdentifier != null ? instanceIdentifier.getInstanceIdentifier() : null);
+        W3CEndpointReference registerEndpoint = TestUtil11.getRegistrationEndpoint(identifier);
+        RegisterType registerType = new RegisterType();
+        registerType.setProtocolIdentifier(protocolIdentifier);
+        registerType.setParticipantProtocolService(participantProtocolEndpoint);
+        RegistrationPortType port = WSCOORClient.getRegistrationPort(registerEndpoint, CoordinationConstants.WSCOOR_ACTION_REGISTER, messageId);
+        port.registerOperation(registerType);
+
+        final RegisterDetails details = testRegistrationCoordinatorProcessor.getRegisterDetails(messageId, 10000) ;
+        final RegisterType requestRegister = details.getRegister() ;
+        final MAP requestMap = details.getMAP() ;
+        final ArjunaContext requestArjunaContext = details.getArjunaContext() ;
+
+        assertEquals(requestMap.getTo(), TestUtil11.registrationCoordinatorService);
+        assertEquals(requestMap.getMessageID(), messageId);
+
+        if (instanceIdentifier == null)
+        {
+            assertNull(requestArjunaContext) ;
+        }
+        else
+        {
+            assertEquals(instanceIdentifier.getInstanceIdentifier(), requestArjunaContext.getInstanceIdentifier().getInstanceIdentifier()) ;
+        }
+
+        assertEquals(protocolIdentifier, requestRegister.getProtocolIdentifier()) ;
+    }
+
+    public void tearDown()
+        throws Exception
+    {
+        RegistrationCoordinatorProcessor.setCoordinator(origRegistrationCoordinatorProcessor) ;
+        origRegistrationCoordinatorProcessor = null ;
+        testRegistrationCoordinatorProcessor = null ;
+    }
+}
\ No newline at end of file


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/Registration.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/RegistrationService.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/RegistrationService.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/RegistrationService.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,87 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. 
+ * See the copyright.txt in the distribution for a full listing 
+ * of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+/*
+ * Copyright (c) 2002, 2003, Arjuna Technologies Limited.
+ *
+ * RegistrationServiceTestCase.java
+ */
+
+package com.arjuna.wsc11.tests.arq;
+
+import static org.junit.Assert.*;
+
+import com.arjuna.wsc.InvalidProtocolException;
+import com.arjuna.wsc.tests.TestUtil;
+import com.arjuna.wsc11.RegistrationCoordinator;
+import com.arjuna.wsc11.tests.TestUtil11;
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType;
+
+import javax.xml.ws.wsaddressing.W3CEndpointReference;
+
+public class RegistrationService
+{
+    public void testKnownCoordinationType()
+        throws Exception
+    {
+        final String messageId = "testKnownCoordinationType" ;
+        final String protocolIdentifier = TestUtil.PROTOCOL_IDENTIFIER ;
+        final CoordinationContextType coordinationContext = new CoordinationContextType() ;
+        CoordinationContextType.Identifier identifierInstance = new CoordinationContextType.Identifier();
+        coordinationContext.setCoordinationType(TestUtil.COORDINATION_TYPE) ;
+        coordinationContext.setIdentifier(identifierInstance) ;
+        identifierInstance.setValue("identifier");
+        coordinationContext.setRegistrationService(TestUtil11.getRegistrationEndpoint(identifierInstance.getValue())) ;
+        W3CEndpointReference participantEndpoint = TestUtil11.getProtocolParticipantEndpoint("participant");
+        try
+        {
+            final W3CEndpointReference registerResponse = RegistrationCoordinator.register(coordinationContext, messageId, participantEndpoint, protocolIdentifier) ;
+
+            assertNotNull(registerResponse) ;
+        }
+        catch (final Throwable th)
+        {
+            fail("Unexpected exception: " + th) ;
+        }
+    }
+
+    public void testUnknownCoordinationType()
+        throws Exception
+    {
+        final String messageId = "testUnknownCoordinationType" ;
+        final String protocolIdentifier = TestUtil.UNKNOWN_PROTOCOL_IDENTIFIER ;
+        final CoordinationContextType coordinationContext = new CoordinationContextType() ;
+        CoordinationContextType.Identifier identifierInstance = new CoordinationContextType.Identifier();
+        coordinationContext.setCoordinationType(TestUtil.COORDINATION_TYPE) ;
+        coordinationContext.setIdentifier(identifierInstance) ;
+        identifierInstance.setValue("identifier");
+        coordinationContext.setRegistrationService(TestUtil11.getRegistrationEndpoint(identifierInstance.getValue())) ;
+        W3CEndpointReference participantEndpoint = TestUtil11.getProtocolParticipantEndpoint("participant");
+        try
+        {
+            RegistrationCoordinator.register(coordinationContext, messageId, participantEndpoint, protocolIdentifier) ;
+        }
+        catch (final InvalidProtocolException ipe) {}
+        catch (final Throwable th)
+        {
+            fail("Unexpected exception: " + th) ;
+        }
+    }
+}
\ No newline at end of file


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/RegistrationService.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/RegistrationServiceException.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/RegistrationServiceException.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/RegistrationServiceException.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,135 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. 
+ * See the copyright.txt in the distribution for a full listing 
+ * of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+/*
+ * Copyright (c) 2002, 2003, Arjuna Technologies Limited.
+ *
+ * RegistrationServiceExceptionTestCase.java
+ */
+
+package com.arjuna.wsc11.tests.arq;
+
+import com.arjuna.wsc.*;
+import static org.junit.Assert.*;
+
+import com.arjuna.wsc.tests.TestUtil;
+import com.arjuna.wsc11.RegistrationCoordinator;
+import com.arjuna.wsc11.tests.TestUtil11;
+
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType;
+
+import javax.inject.Named;
+import javax.xml.ws.wsaddressing.W3CEndpointReference;
+
+ at Named
+public class RegistrationServiceException
+{
+    public void testAlreadyRegisteredProtocolIdentifierException()
+        throws Exception
+    {
+        final String messageId = "testAlreadyRegisteredProtocolIdentifierException" ;
+        final String protocolIdentifier = TestUtil.ALREADY_REGISTERED_PROTOCOL_IDENTIFIER ;
+        final CoordinationContextType coordinationContext = new CoordinationContextType() ;
+        final CoordinationContextType.Identifier identifierInstance = new CoordinationContextType.Identifier();
+        coordinationContext.setCoordinationType(TestUtil.COORDINATION_TYPE) ;
+        coordinationContext.setIdentifier(identifierInstance);
+        identifierInstance.setValue("identifier") ;
+        coordinationContext.setRegistrationService(TestUtil11.getRegistrationEndpoint(identifierInstance.getValue())) ;
+        W3CEndpointReference participantEndpoint = TestUtil11.getProtocolParticipantEndpoint("participant");
+        try
+        {
+            RegistrationCoordinator.register(coordinationContext, messageId, participantEndpoint, protocolIdentifier) ;
+        }
+        catch (final CannotRegisterException cre) {}
+        catch (final Throwable th)
+        {
+            fail("Unexpected exception: " + th) ;
+        }
+    }
+
+    public void testInvalidProtocolProtocolIdentifierException()
+        throws Exception
+    {
+        final String messageId = "testInvalidProtocolProtocolIdentifierException" ;
+        final String protocolIdentifier = TestUtil.INVALID_PROTOCOL_PROTOCOL_IDENTIFIER ;
+        final CoordinationContextType coordinationContext = new CoordinationContextType() ;
+        final CoordinationContextType.Identifier identifierInstance = new CoordinationContextType.Identifier();
+        coordinationContext.setCoordinationType(TestUtil.COORDINATION_TYPE) ;
+        coordinationContext.setIdentifier(identifierInstance);
+        identifierInstance.setValue("identifier") ;
+        coordinationContext.setRegistrationService(TestUtil11.getRegistrationEndpoint(identifierInstance.getValue())) ;
+        W3CEndpointReference participantEndpoint = TestUtil11.getProtocolParticipantEndpoint("participant");
+        try
+        {
+            RegistrationCoordinator.register(coordinationContext, messageId, participantEndpoint, protocolIdentifier) ;
+        }
+        catch (final InvalidProtocolException ipe) {}
+        catch (final Throwable th)
+        {
+            fail("Unexpected exception: " + th) ;
+        }
+    }
+
+    public void testInvalidStateProtocolIdentifierException()
+        throws Exception
+    {
+        final String messageId = "testInvalidStateProtocolIdentifierException" ;
+        final String protocolIdentifier = TestUtil.INVALID_STATE_PROTOCOL_IDENTIFIER ;
+        final CoordinationContextType coordinationContext = new CoordinationContextType() ;
+        final CoordinationContextType.Identifier identifierInstance = new CoordinationContextType.Identifier();
+        coordinationContext.setCoordinationType(TestUtil.COORDINATION_TYPE) ;
+        coordinationContext.setIdentifier(identifierInstance);
+        identifierInstance.setValue("identifier") ;
+        coordinationContext.setRegistrationService(TestUtil11.getRegistrationEndpoint(identifierInstance.getValue())) ;
+        W3CEndpointReference participantEndpoint = TestUtil11.getProtocolParticipantEndpoint("participant");
+        try
+        {
+            RegistrationCoordinator.register(coordinationContext, messageId, participantEndpoint, protocolIdentifier) ;
+        }
+        catch (final InvalidStateException ise) {}
+        catch (final Throwable th)
+        {
+            fail("Unexpected exception: " + th) ;
+        }
+    }
+
+    public void testNoActivityProtocolIdentifierException()
+        throws Exception
+    {
+        final String messageId = "testNoActivityProtocolIdentifierException" ;
+        final String protocolIdentifier = TestUtil.NO_ACTIVITY_PROTOCOL_IDENTIFIER ;
+        final CoordinationContextType coordinationContext = new CoordinationContextType() ;
+        final CoordinationContextType.Identifier identifierInstance = new CoordinationContextType.Identifier();
+        coordinationContext.setCoordinationType(TestUtil.COORDINATION_TYPE) ;
+        coordinationContext.setIdentifier(identifierInstance);
+        identifierInstance.setValue("identifier") ;
+        coordinationContext.setRegistrationService(TestUtil11.getRegistrationEndpoint(identifierInstance.getValue())) ;
+        W3CEndpointReference participantEndpoint = TestUtil11.getProtocolParticipantEndpoint("participant");
+        try
+        {
+            RegistrationCoordinator.register(coordinationContext, messageId, participantEndpoint, protocolIdentifier) ;
+        }
+        catch (final CannotRegisterException nae) {}
+        catch (final Throwable th)
+        {
+            fail("Unexpected exception: " + th) ;
+        }
+    }
+}
\ No newline at end of file


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/RegistrationServiceException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/TestActivationCoordinatorProcessor.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/TestActivationCoordinatorProcessor.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/TestActivationCoordinatorProcessor.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,150 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. 
+ * See the copyright.txt in the distribution for a full listing 
+ * of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package com.arjuna.wsc11.tests.arq;
+
+import com.arjuna.webservices.SoapFaultType;
+import com.arjuna.webservices11.wscoor.CoordinationConstants;
+import com.arjuna.webservices11.wscoor.processors.ActivationCoordinatorProcessor;
+import org.jboss.ws.api.addressing.MAP;
+import com.arjuna.wsc.tests.TestUtil;
+import com.arjuna.wsc11.tests.TestUtil11;
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContext;
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType;
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.CreateCoordinationContextResponseType;
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.CreateCoordinationContextType;
+
+import javax.xml.soap.SOAPFactory;
+import javax.xml.soap.SOAPFault;
+import javax.xml.ws.ProtocolException;
+import javax.xml.ws.soap.SOAPFaultException;
+import javax.xml.ws.wsaddressing.W3CEndpointReference;
+import javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder;
+import java.util.HashMap;
+import java.util.Map;
+
+public class TestActivationCoordinatorProcessor extends
+        ActivationCoordinatorProcessor
+{
+    private Map messageIdMap = new HashMap() ;
+
+    public CreateCoordinationContextResponseType createCoordinationContext(final CreateCoordinationContextType createCoordinationContext,
+        final MAP map, boolean isSecure)
+    {
+        final String messageId = map.getMessageID() ;
+        synchronized(messageIdMap)
+        {
+            messageIdMap.put(messageId, new CreateCoordinationContextDetails(createCoordinationContext, map)) ;
+            messageIdMap.notifyAll() ;
+        }
+        String coordinationType = createCoordinationContext.getCoordinationType();
+        if (TestUtil.INVALID_CREATE_PARAMETERS_COORDINATION_TYPE.equals(coordinationType)) {
+            try {
+                SOAPFactory factory = SOAPFactory.newInstance();
+                SOAPFault soapFault = factory.createFault(SoapFaultType.FAULT_SENDER.getValue(), CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME);
+                soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode("Invalid create parameters");
+                throw new SOAPFaultException(soapFault);
+            } catch (Throwable th) {
+                throw new ProtocolException(th);
+            }
+        }
+        
+        // we have to return a value so lets cook one up
+
+        CreateCoordinationContextResponseType createCoordinationContextResponseType = new CreateCoordinationContextResponseType();
+        CoordinationContext coordinationContext = new CoordinationContext();
+        coordinationContext.setCoordinationType(coordinationType);
+        coordinationContext.setExpires(createCoordinationContext.getExpires());
+        String identifier = nextIdentifier();
+        CoordinationContextType.Identifier identifierInstance = new CoordinationContextType.Identifier();
+        identifierInstance.setValue(identifier);
+        coordinationContext.setIdentifier(identifierInstance);
+        W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
+        builder.serviceName(CoordinationConstants.REGISTRATION_SERVICE_QNAME);
+        builder.endpointName(CoordinationConstants.REGISTRATION_ENDPOINT_QNAME);
+        builder.address(TestUtil.PROTOCOL_COORDINATOR_SERVICE);
+        W3CEndpointReference registrationService = builder.build();
+        coordinationContext.setRegistrationService(TestUtil11.getRegistrationEndpoint(identifier));
+        createCoordinationContextResponseType.setCoordinationContext(coordinationContext);
+
+        return createCoordinationContextResponseType;
+    }
+
+    public CreateCoordinationContextDetails getCreateCoordinationContextDetails(final String messageId, long timeout)
+    {
+        final long endTime = System.currentTimeMillis() + timeout ;
+        synchronized(messageIdMap)
+        {
+            long now = System.currentTimeMillis() ;
+            while(now < endTime)
+            {
+                final CreateCoordinationContextDetails details = (CreateCoordinationContextDetails)messageIdMap.remove(messageId) ;
+                if (details != null)
+                {
+                    return details ;
+                }
+                try
+                {
+                    messageIdMap.wait(endTime - now) ;
+                }
+                catch (final InterruptedException ie) {} // ignore
+                now = System.currentTimeMillis() ;
+            }
+            final CreateCoordinationContextDetails details = (CreateCoordinationContextDetails)messageIdMap.remove(messageId) ;
+            if (details != null)
+            {
+                return details ;
+            }
+        }
+        throw new NullPointerException("Timeout occurred waiting for id: " + messageId) ;
+    }
+
+    public static class CreateCoordinationContextDetails
+    {
+        private final CreateCoordinationContextType createCoordinationContext ;
+        private final MAP map ;
+
+        CreateCoordinationContextDetails(final CreateCoordinationContextType createCoordinationContext,
+            final MAP map)
+        {
+            this.createCoordinationContext = createCoordinationContext ;
+            this.map = map ;
+        }
+
+        public CreateCoordinationContextType getCreateCoordinationContext()
+        {
+            return createCoordinationContext ;
+        }
+
+        public MAP getMAP()
+        {
+            return map ;
+        }
+    }
+
+    private static int nextIdentifier = 0;
+
+    private synchronized String nextIdentifier()
+    {
+        int value = nextIdentifier++;
+
+        return Integer.toString(value);
+    }
+}
\ No newline at end of file


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/TestActivationCoordinatorProcessor.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/TestRegistrationCoordinatorProcessor.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/TestRegistrationCoordinatorProcessor.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/TestRegistrationCoordinatorProcessor.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,165 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. 
+ * See the copyright.txt in the distribution for a full listing 
+ * of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package com.arjuna.wsc11.tests.arq;
+
+import com.arjuna.webservices.SoapFaultType;
+import com.arjuna.webservices11.wsarj.ArjunaContext;
+import com.arjuna.webservices11.wsarj.InstanceIdentifier;
+import com.arjuna.webservices11.wscoor.CoordinationConstants;
+import com.arjuna.webservices11.wscoor.processors.RegistrationCoordinatorProcessor;
+import org.jboss.ws.api.addressing.MAP;
+import com.arjuna.wsc.tests.TestUtil;
+import com.arjuna.wsc11.tests.TestUtil11;
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.RegisterResponseType;
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.RegisterType;
+
+import javax.xml.soap.SOAPFactory;
+import javax.xml.soap.SOAPFault;
+import javax.xml.ws.ProtocolException;
+import javax.xml.ws.soap.SOAPFaultException;
+import java.util.HashMap;
+import java.util.Map;
+
+public class TestRegistrationCoordinatorProcessor extends
+        RegistrationCoordinatorProcessor
+{
+    private Map messageIdMap = new HashMap() ;
+
+    public RegisterResponseType register(final RegisterType register, final MAP map, final ArjunaContext arjunaContext, boolean isSecure)
+    {
+        final String messageId = map.getMessageID() ;
+        synchronized(messageIdMap)
+        {
+            messageIdMap.put(messageId, new RegisterDetails(register, map, arjunaContext)) ;
+            messageIdMap.notifyAll() ;
+        }
+        String protocolIdentifier = register.getProtocolIdentifier();
+        if (TestUtil.ALREADY_REGISTERED_PROTOCOL_IDENTIFIER.equals(protocolIdentifier)) {
+            try {
+                SOAPFactory factory = SOAPFactory.newInstance();
+                SOAPFault soapFault = factory.createFault(SoapFaultType.FAULT_SENDER.getValue(), CoordinationConstants.WSCOOR_ERROR_CODE_CANNOT_REGISTER_QNAME);
+                soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_CANNOT_REGISTER_QNAME).addTextNode("already registered");
+                throw new SOAPFaultException(soapFault);
+            } catch (Throwable th) {
+                throw new ProtocolException(th);
+            }
+        }
+        if (TestUtil.INVALID_PROTOCOL_PROTOCOL_IDENTIFIER.equals(protocolIdentifier)) {
+            try {
+                SOAPFactory factory = SOAPFactory.newInstance();
+                SOAPFault soapFault = factory.createFault(SoapFaultType.FAULT_SENDER.getValue(), CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PROTOCOL_QNAME);
+                soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PROTOCOL_QNAME).addTextNode("invalid protocol");
+                throw new SOAPFaultException(soapFault);
+            } catch (Throwable th) {
+                throw new ProtocolException(th);
+            }
+        }
+        if (TestUtil.INVALID_STATE_PROTOCOL_IDENTIFIER.equals(protocolIdentifier)) {
+            try {
+                SOAPFactory factory = SOAPFactory.newInstance();
+                SOAPFault soapFault = factory.createFault(SoapFaultType.FAULT_SENDER.getValue(), CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_STATE_QNAME);
+                soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_STATE_QNAME).addTextNode("invalid state");
+                throw new SOAPFaultException(soapFault);
+            } catch (Throwable th) {
+                throw new ProtocolException(th);
+            }
+        }
+        if (TestUtil.NO_ACTIVITY_PROTOCOL_IDENTIFIER.equals(protocolIdentifier)) {
+            try {
+                SOAPFactory factory = SOAPFactory.newInstance();
+                SOAPFault soapFault = factory.createFault(SoapFaultType.FAULT_SENDER.getValue(), CoordinationConstants.WSCOOR_ERROR_CODE_CANNOT_REGISTER_QNAME);
+                soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_CANNOT_REGISTER_QNAME).addTextNode("no activity");
+                throw new SOAPFaultException(soapFault);
+            } catch (Throwable th) {
+                throw new ProtocolException(th);
+            }
+        }
+        // we need to cook up a response here
+        RegisterResponseType registerResponseType = new RegisterResponseType();
+        if (arjunaContext != null) {
+            InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier();
+            registerResponseType.setCoordinatorProtocolService(TestUtil11.getProtocolCoordinatorEndpoint(instanceIdentifier.getInstanceIdentifier()));
+        } else {
+            registerResponseType.setCoordinatorProtocolService(TestUtil11.getProtocolCoordinatorEndpoint(null));
+        }
+        return registerResponseType;
+    }
+
+    public RegisterDetails getRegisterDetails(final String messageId, final long timeout)
+    {
+        final long endTime = System.currentTimeMillis() + timeout ;
+        synchronized(messageIdMap)
+        {
+            long now = System.currentTimeMillis() ;
+            while(now < endTime)
+            {
+                final RegisterDetails details = (RegisterDetails)messageIdMap.remove(messageId) ;
+                if (details != null)
+                {
+                    return details ;
+                }
+                try
+                {
+                    messageIdMap.wait(endTime - now) ;
+                }
+                catch (final InterruptedException ie) {} // ignore
+                now = System.currentTimeMillis() ;
+            }
+            final RegisterDetails details = (RegisterDetails)messageIdMap.remove(messageId) ;
+            if (details != null)
+            {
+                return details ;
+            }
+        }
+        throw new NullPointerException("Timeout occurred waiting for id: " + messageId) ;
+    }
+
+    public static class RegisterDetails
+    {
+        private final RegisterType register ;
+        private final MAP map ;
+        private final ArjunaContext arjunaContext ;
+
+        RegisterDetails(final RegisterType register,
+            final MAP map,
+            final ArjunaContext arjunaContext)
+        {
+            this.register = register ;
+            this.map = map ;
+            this.arjunaContext = arjunaContext ;
+        }
+
+        public RegisterType getRegister()
+        {
+            return register ;
+        }
+
+        public MAP getMAP()
+        {
+            return map ;
+        }
+
+        public ArjunaContext getArjunaContext()
+        {
+            return arjunaContext ;
+        }
+    }
+}
\ No newline at end of file


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/main/java/com/arjuna/wsc11/tests/arq/TestRegistrationCoordinatorProcessor.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/WarDeployment.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/WarDeployment.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/WarDeployment.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,36 @@
+package com.arjuna.wsc11.tests;
+
+import java.io.File;
+
+import org.jboss.shrinkwrap.api.ArchivePaths;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.asset.EmptyAsset;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+
+import com.arjuna.wsc.tests.TestUtil;
+
+public class WarDeployment {
+	public static WebArchive getDeployment(Class<?>...args){
+		WebArchive archive = ShrinkWrap
+		.create(WebArchive.class, "test.war")
+		.addClass(TestInitialisation.class)
+		.addClass(TestContextFactory.class)
+		.addClass(TestUtil.class)
+		.addClass(TestUtil11.class)
+		.addClass(TestRegistrar.class)
+		.addClasses(args)
+		.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
+		.setWebXML(new File("src/test/resources/web.xml"));
+
+		archive.delete(ArchivePaths.create("META-INF/MANIFEST.MF"));
+
+		final String ManifestMF = "Manifest-Version: 1.0\n"
+			+ "Dependencies: org.jboss.modules,deployment.arquillian-service,org.jboss.msc,"
+			+ "org.jboss.jts,org.jboss.ws.api,javax.xml.ws.api,org.jboss.xts,"
+			+ "org.jboss.ws.jaxws-client services export,org.jboss.ws.cxf.jbossws-cxf-client services export\n";
+		archive.setManifest(new StringAsset(ManifestMF));
+
+		return archive;
+	}
+}


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/WarDeployment.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/ActivationServiceExceptionTest.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/ActivationServiceExceptionTest.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/ActivationServiceExceptionTest.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,27 @@
+package com.arjuna.wsc11.tests.arq;
+
+import javax.inject.Inject;
+
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import com.arjuna.wsc11.tests.WarDeployment;
+
+ at RunWith(Arquillian.class)
+public class ActivationServiceExceptionTest {
+	@Inject
+	ActivationServiceException test;
+	
+	@Deployment
+	public static WebArchive createDeployment() {
+		return WarDeployment.getDeployment(ActivationServiceException.class);
+	}
+	
+	@Test
+	public void testInvalidCreateParametersException() throws Exception {
+		test.testInvalidCreateParametersException();
+	}
+}


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/ActivationServiceExceptionTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/ActivationServiceTest.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/ActivationServiceTest.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/ActivationServiceTest.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,32 @@
+package com.arjuna.wsc11.tests.arq;
+
+import javax.inject.Inject;
+
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import com.arjuna.wsc11.tests.WarDeployment;
+
+ at RunWith(Arquillian.class)
+public class ActivationServiceTest {
+	@Inject
+	ActivationService test;
+	
+	@Deployment
+	public static WebArchive createDeployment() {
+		return WarDeployment.getDeployment(ActivationService.class);
+	}
+	
+	@Test
+	 public void testKnownCoordinationType() throws Exception {
+		test.testKnownCoordinationType();
+	}
+	
+	@Test
+	public void testUnknownCoordinationType() throws Exception {
+		test.testUnknownCoordinationType();
+	}
+}


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/ActivationServiceTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/ActivationTest.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/ActivationTest.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/ActivationTest.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,75 @@
+package com.arjuna.wsc11.tests.arq;
+
+import javax.inject.Inject;
+
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import com.arjuna.wsc11.tests.WarDeployment;
+import com.arjuna.wsc11.tests.arq.TestActivationCoordinatorProcessor.CreateCoordinationContextDetails;
+
+
+ at RunWith(Arquillian.class)
+public class ActivationTest {
+	@Inject
+	Activation test;
+
+	@Deployment
+	public static WebArchive createDeployment() {
+		return WarDeployment.getDeployment(
+				Activation.class,
+				TestActivationCoordinatorProcessor.class,
+				CreateCoordinationContextDetails.class);
+	}
+
+	@Before
+	public void setUp() throws Exception {
+		test.setUp();
+	}
+
+	@Test
+	public void testRequestWithoutExpiresWithoutCurrentContext() 
+		throws Exception {
+		test.testRequestWithoutExpiresWithoutCurrentContext();
+	}
+	
+	@Test
+	public void testRequestWithExpiresWithoutCurrentContext()
+    throws Exception {
+		test.testRequestWithExpiresWithoutCurrentContext();
+	}
+	
+	@Test
+	public void testRequestWithoutExpiresWithCurrentContextWithoutExpires()
+    throws Exception {
+		test.testRequestWithoutExpiresWithCurrentContextWithoutExpires();
+	}
+	
+	@Test
+	public void testRequestWithoutExpiresWithCurrentContextWithExpires()
+    throws Exception {
+		test.testRequestWithoutExpiresWithCurrentContextWithExpires();
+	}
+	
+	@Test
+	public void testRequestWithExpiresWithCurrentContextWithoutExpires()
+    throws Exception {
+		test.testRequestWithExpiresWithCurrentContextWithoutExpires();
+	}
+	
+	@Test
+	public void testRequestWithExpiresWithCurrentContextWithExpires()
+    throws Exception {
+		test.testRequestWithExpiresWithCurrentContextWithExpires();
+	}
+	
+	@After
+	public void tearDown() throws Exception {
+		test.tearDown();
+	}
+}


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/ActivationTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/EnduranceTest.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/EnduranceTest.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/EnduranceTest.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,66 @@
+package com.arjuna.wsc11.tests.arq;
+
+import javax.inject.Inject;
+
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import com.arjuna.wsc11.tests.WarDeployment;
+import com.arjuna.wsc11.tests.arq.TestActivationCoordinatorProcessor.CreateCoordinationContextDetails;
+import com.arjuna.wsc11.tests.arq.TestRegistrationCoordinatorProcessor.RegisterDetails;
+
+ at RunWith(Arquillian.class)
+public class EnduranceTest {
+	@Inject
+	Endurance test;
+	
+	@Deployment
+	public static WebArchive createDeployment() {
+		return WarDeployment.getDeployment(
+				Endurance.class,
+				TestActivationCoordinatorProcessor.class,
+				TestRegistrationCoordinatorProcessor.class,
+				CreateCoordinationContextDetails.class,
+				RegisterDetails.class);
+	}
+	
+	@Before
+	 public void setUp() throws Exception {
+		test.setUp();
+	}
+	
+	@Test
+	public void testCreateCoordinationContextRequest() throws Exception {
+		test.testCreateCoordinationContextRequest();
+	}
+	
+	@Test
+	 public void testCreateCoordinationContextError() throws Exception {
+		test.testCreateCoordinationContextError();
+	}
+	
+	@Test
+	public void testRegisterRequest() throws Exception {
+		test.testRegisterRequest();
+	}
+	
+	@Test
+	public void testRegisterError() throws Exception {
+		test.testRegisterError();
+	}
+	
+	@Test
+	 public void testEachInTurn() throws Exception {
+		test.testEachInTurn();
+	}
+	
+	@After
+	public void tearDown() throws Exception {
+		test.tearDown();
+	}
+}
\ No newline at end of file


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/EnduranceTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/RegistrationServiceExceptionTest.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/RegistrationServiceExceptionTest.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/RegistrationServiceExceptionTest.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,42 @@
+package com.arjuna.wsc11.tests.arq;
+
+import javax.inject.Inject;
+
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import com.arjuna.wsc11.tests.WarDeployment;
+
+ at RunWith(Arquillian.class)
+public class RegistrationServiceExceptionTest {
+	@Inject
+	RegistrationServiceException test;
+	
+	@Deployment
+	public static WebArchive createDeployment() {
+		return WarDeployment.getDeployment(RegistrationServiceException.class);
+	}
+	
+	@Test
+	public void testAlreadyRegisteredProtocolIdentifierException() throws Exception {
+		test.testAlreadyRegisteredProtocolIdentifierException();
+	}
+	
+	@Test
+	public void testInvalidProtocolProtocolIdentifierException() throws Exception {
+		test.testInvalidProtocolProtocolIdentifierException();
+	}
+	
+	@Test
+	public void testInvalidStateProtocolIdentifierException() throws Exception {
+		test.testInvalidStateProtocolIdentifierException();
+	}
+	
+	@Test
+	public void testNoActivityProtocolIdentifierException() throws Exception {
+		test.testNoActivityProtocolIdentifierException();
+	}
+}


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/RegistrationServiceExceptionTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/RegistrationServiceTest.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/RegistrationServiceTest.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/RegistrationServiceTest.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,32 @@
+package com.arjuna.wsc11.tests.arq;
+
+import javax.inject.Inject;
+
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import com.arjuna.wsc11.tests.WarDeployment;
+
+ at RunWith(Arquillian.class)
+public class RegistrationServiceTest {
+	@Inject
+	RegistrationService test;
+	
+	@Deployment
+	public static WebArchive createDeployment() {
+		return WarDeployment.getDeployment(RegistrationService.class);
+	}
+	
+	@Test
+	public void testKnownCoordinationType() throws Exception {
+		test.testKnownCoordinationType();
+	}
+	
+	@Test
+	public void testUnknownCoordinationType() throws Exception {
+		test.testUnknownCoordinationType();
+	}
+}


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/RegistrationServiceTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/RegistrationTest.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/RegistrationTest.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/RegistrationTest.java	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,48 @@
+package com.arjuna.wsc11.tests.arq;
+
+import javax.inject.Inject;
+
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import com.arjuna.wsc11.tests.WarDeployment;
+import com.arjuna.wsc11.tests.arq.TestRegistrationCoordinatorProcessor.RegisterDetails;
+
+ at RunWith(Arquillian.class)
+public class RegistrationTest {
+	@Inject
+	Registration test;
+	
+	@Deployment
+	public static WebArchive createDeployment() {
+		return WarDeployment.getDeployment(
+				Registration.class,
+				TestRegistrationCoordinatorProcessor.class,
+				RegisterDetails.class);
+	}
+	
+	@Before
+	 public void setUp() throws Exception {
+		test.setUp();
+	}
+	
+	@Test
+	public void testRequestWithoutInstanceIdentifier() throws Exception {
+		test.testRequestWithoutInstanceIdentifier();
+	}
+	
+	@Test
+	public void testRequestWithInstanceIdentifier() throws Exception {
+		test.testRequestWithInstanceIdentifier();
+	}
+	
+	@After
+	public void tearDown() throws Exception {
+		test.tearDown();
+	}
+}


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/java/com/arjuna/wsc11/tests/arq/RegistrationTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/resources/arquillian.xml
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/resources/arquillian.xml	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/resources/arquillian.xml	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.org/schema/arquillian
+	http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
+	<!-- Example configuration for a remote JBoss AS 7 instance -->
+	<container qualifier="jboss-as" default="true">
+		<protocol type="jmx-as7">
+			<property name="executionType">REMOTE</property>
+		</protocol>
+		<configuration>
+			<property name="serverConfig">standalone-xts.xml</property>
+		</configuration>
+	</container>
+</arquillian>

Added: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/resources/web.xml
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/resources/web.xml	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/resources/web.xml	2011-11-11 11:11:41 UTC (rev 37720)
@@ -0,0 +1,38 @@
+<!--
+  JBoss, Home of Professional Open Source
+  Copyright 2006, Red Hat Middleware LLC, and individual contributors
+  as indicated by the @author tags. 
+  See the copyright.txt in the distribution for a full listing 
+  of individual contributors.
+  This copyrighted material is made available to anyone wishing to use,
+  modify, copy, or redistribute it subject to the terms and conditions
+  of the GNU Lesser General Public License, v. 2.1.
+  This program is distributed in the hope that it will be useful, but WITHOUT A
+  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+  PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+  You should have received a copy of the GNU Lesser General Public License,
+  v.2.1 along with this distribution; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+  MA  02110-1301, USA.
+
+  
+  (C) 2005-2006,
+  @author JBoss Inc.
+-->
+
+<web-app version="2.5"
+         xmlns="http://java.sun.com/xml/ns/javaee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+         metadata-complete="false">
+
+    <display-name>Arjuna Web Services Coordination Tests</display-name>
+
+    <description>Arjuna Web Services Coordination Tests</description>
+
+    <!--  Initialise the tests -->
+    <listener>
+        <listener-class>com.arjuna.wsc11.tests.TestInitialisation</listener-class>
+    </listener>
+    
+</web-app>


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WS-C/src/test/resources/web.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain



More information about the jboss-svn-commits mailing list