[jboss-cvs] JBossAS SVN: r94475 - in projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/connectionmanager/unit: tx and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 7 16:22:24 EDT 2009
Author: gurkanerdogdu
Date: 2009-10-07 16:22:24 -0400 (Wed, 07 Oct 2009)
New Revision: 94475
Modified:
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/connectionmanager/unit/nontx/NonTxConnectionManagerTestCase.java
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/connectionmanager/unit/tx/TxConnectionManagerTestCase.java
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/connectionmanager/unit/tx/XATxConnectionManagerTestCase.java
Log:
[JBJCA-182] ConnectionManager API Implementation Dependency
Modified: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/connectionmanager/unit/nontx/NonTxConnectionManagerTestCase.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/connectionmanager/unit/nontx/NonTxConnectionManagerTestCase.java 2009-10-07 20:20:46 UTC (rev 94474)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/connectionmanager/unit/nontx/NonTxConnectionManagerTestCase.java 2009-10-07 20:22:24 UTC (rev 94475)
@@ -43,7 +43,7 @@
/**
* NonTxConnectionManagerTestCase.
* @author <a href="mailto:gurkanerdogdu at yahoo.com">Gurkan Erdogdu</a>
- * @version $Rev$ $Date$
+ * @version $Rev:93321 $ $Date:2009-09-09 20:36:35 +0300 (Wed, 09 Sep 2009) $
*
*/
public class NonTxConnectionManagerTestCase
@@ -68,7 +68,7 @@
noTxCm.setPoolingStrategy(onePool);
- connectionManager.setRealConnectionManager(noTxCm);
+ ((ConnectionManagerImpl)connectionManager).setRealConnectionManager(noTxCm);
}
/**
Modified: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/connectionmanager/unit/tx/TxConnectionManagerTestCase.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/connectionmanager/unit/tx/TxConnectionManagerTestCase.java 2009-10-07 20:20:46 UTC (rev 94474)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/connectionmanager/unit/tx/TxConnectionManagerTestCase.java 2009-10-07 20:22:24 UTC (rev 94475)
@@ -22,6 +22,7 @@
package org.jboss.jca.test.core.connectionmanager.unit.tx;
import org.jboss.jca.core.api.ConnectionManager;
+import org.jboss.jca.core.connectionmanager.ConnectionManagerImpl;
import org.jboss.jca.core.connectionmanager.pool.PoolParams;
import org.jboss.jca.core.connectionmanager.pool.strategy.OnePool;
import org.jboss.jca.core.connectionmanager.transaction.TransactionSynchronizer;
@@ -63,9 +64,11 @@
ConnectionManager connectionManager = embedded.lookup("ConnectionManagerTx", ConnectionManager.class);
assertNotNull(connectionManager);
- assertTrue(connectionManager.getRealConnectionManager() instanceof TxConnectionManager);
+ ConnectionManagerImpl impl = (ConnectionManagerImpl)connectionManager;
- TxConnectionManager txConnectionManager = (TxConnectionManager)connectionManager.getRealConnectionManager();
+ assertTrue(impl.getRealConnectionManager() instanceof TxConnectionManager);
+
+ TxConnectionManager txConnectionManager = (TxConnectionManager)impl.getRealConnectionManager();
txConnectionManager.setLocalTransactions(true);
assertNotNull(txConnectionManager.getCachedConnectionManager());
Modified: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/connectionmanager/unit/tx/XATxConnectionManagerTestCase.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/connectionmanager/unit/tx/XATxConnectionManagerTestCase.java 2009-10-07 20:20:46 UTC (rev 94474)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/connectionmanager/unit/tx/XATxConnectionManagerTestCase.java 2009-10-07 20:22:24 UTC (rev 94475)
@@ -22,6 +22,7 @@
package org.jboss.jca.test.core.connectionmanager.unit.tx;
import org.jboss.jca.core.api.ConnectionManager;
+import org.jboss.jca.core.connectionmanager.ConnectionManagerImpl;
import org.jboss.jca.core.connectionmanager.pool.PoolParams;
import org.jboss.jca.core.connectionmanager.pool.strategy.OnePool;
import org.jboss.jca.core.connectionmanager.transaction.TransactionSynchronizer;
@@ -63,9 +64,11 @@
ConnectionManager connectionManager = embedded.lookup("ConnectionManagerTx", ConnectionManager.class);
assertNotNull(connectionManager);
- assertTrue(connectionManager.getRealConnectionManager() instanceof TxConnectionManager);
+ ConnectionManagerImpl impl = (ConnectionManagerImpl)connectionManager;
- TxConnectionManager txConnectionManager = (TxConnectionManager)connectionManager.getRealConnectionManager();
+ assertTrue(impl.getRealConnectionManager() instanceof TxConnectionManager);
+
+ TxConnectionManager txConnectionManager = (TxConnectionManager)impl.getRealConnectionManager();
txConnectionManager.setLocalTransactions(false);
TransactionManager transactionManager = txConnectionManager.getTransactionManager();
More information about the jboss-cvs-commits
mailing list