Author: jmarino
Date: Sun Dec 3 18:56:11 2006
New Revision: 482020
URL: http://svn.apache.org/viewvc?view=rev&rev=482020
Log:
add system scdl for transaction manager; integration tests
Added:
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/main/resources/
- copied from r481843,
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/main/resource/
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/main/resources/META-INF/
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/main/resources/META-INF/sca/
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/main/resources/META-INF/sca/geronimo.jta.scdl
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/java/org/apache/tuscany/transaction/geronimo/jta/integration/
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/java/org/apache/tuscany/transaction/geronimo/jta/integration/BootstrapTestCase.java
(with props)
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/resources/
- copied from r481843,
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/resource/
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/resources/META-INF/
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/resources/META-INF/sca/
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/resources/META-INF/sca/empty.scdl
Removed:
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/main/resource/
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/resource/
Added:
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/main/resources/META-INF/sca/geronimo.jta.scdl
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/main/resources/META-INF/sca/geronimo.jta.scdl?view=auto&rev=482020
==============================================================================
---
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/main/resources/META-INF/sca/geronimo.jta.scdl
(added)
+++
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/main/resources/META-INF/sca/geronimo.jta.scdl
Sun Dec 3 18:56:11 2006
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ -->
+<!--
+ Spring implementation extension configuration for the launcher environment.
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ xmlns:system="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT"
+ name="org.apache.tuscany.transaction.geronimo.JTAExtension">
+
+ <component name="TransactionLogService">
+ <system:implementation.system
+
class="org.apache.tuscany.transaction.geronimo.jta.GeronimoTransactionLogService"/>
+ </component>
+
+ <component name="XidFactory">
+ <system:implementation.system
class="org.apache.geronimo.transaction.manager.XidFactoryImpl"/>
+ </component>
+
+ <component name="TransactionManager">
+ <system:implementation.system
+
class="org.apache.tuscany.transaction.geronimo.jta.GeronimoTransactionManagerService"/>
+ </component>
+
+</composite>
\ No newline at end of file
Added:
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/java/org/apache/tuscany/transaction/geronimo/jta/integration/BootstrapTestCase.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/java/org/apache/tuscany/transaction/geronimo/jta/integration/BootstrapTestCase.java?view=auto&rev=482020
==============================================================================
---
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/java/org/apache/tuscany/transaction/geronimo/jta/integration/BootstrapTestCase.java
(added)
+++
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/java/org/apache/tuscany/transaction/geronimo/jta/integration/BootstrapTestCase.java
Sun Dec 3 18:56:11 2006
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.transaction.geronimo.jta.integration;
+
+import javax.transaction.TransactionManager;
+
+import static org.apache.tuscany.spi.bootstrap.ComponentNames.TUSCANY_SYSTEM;
+import org.apache.tuscany.spi.bootstrap.RuntimeComponent;
+import org.apache.tuscany.spi.component.AtomicComponent;
+import org.apache.tuscany.spi.component.CompositeComponent;
+
+import org.apache.tuscany.test.SCATestCase;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class BootstrapTestCase extends SCATestCase {
+ private CompositeComponent jtaComposite;
+
+ public void testTransactionManagerLocation() {
+ AtomicComponent tmComponent = (AtomicComponent)
jtaComposite.getSystemChild("TransactionManager");
+ Object tm = tmComponent.getServiceInstance();
+ assertTrue(tm instanceof TransactionManager);
+ }
+
+ public void testAutowire() {
+
assertNotNull(jtaComposite.resolveSystemInstance(TransactionManager.class));
+ }
+
+ protected void setUp() throws Exception {
+ addExtension("geronimo.jta",
getClass().getClassLoader().getResource("META-INF/sca/geronimo.jta.scdl"));
+
setApplicationSCDL(getClass().getClassLoader().getResource("META-INF/sca/empty.scdl"));
+ super.setUp();
+ RuntimeComponent runtime = (RuntimeComponent)
component.getParent().getParent();
+ CompositeComponent systemComposite = runtime.getSystemComponent();
+ CompositeComponent topLevelComposite = (CompositeComponent)
systemComposite.getChild(TUSCANY_SYSTEM);
+ jtaComposite = (CompositeComponent)
topLevelComposite.getChild("geronimo.jta");
+ }
+
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ }
+}
Propchange:
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/java/org/apache/tuscany/transaction/geronimo/jta/integration/BootstrapTestCase.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/java/org/apache/tuscany/transaction/geronimo/jta/integration/BootstrapTestCase.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/resources/META-INF/sca/empty.scdl
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/resources/META-INF/sca/empty.scdl?view=auto&rev=482020
==============================================================================
---
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/resources/META-INF/sca/empty.scdl
(added)
+++
incubator/tuscany/java/sca/services/transaction/transaction.geronimo/src/test/resources/META-INF/sca/empty.scdl
Sun Dec 3 18:56:11 2006
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ name="jta.test">
+ <!-- intentionally left blank -->
+</composite>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]