[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/invocationcontext ...
Manik Surtani
msurtani at jboss.com
Thu Jan 11 08:49:05 EST 2007
User: msurtani
Date: 07/01/11 08:49:05
Modified: tests/functional/org/jboss/cache/invocationcontext
TransactionTest.java
Log:
Changed CacheImpl ctor to be protected, and changed cache factories accordingly
Revision Changes Path
1.7 +9 -3 JBossCache/tests/functional/org/jboss/cache/invocationcontext/TransactionTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: TransactionTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/invocationcontext/TransactionTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- TransactionTest.java 2 Jan 2007 18:26:07 -0000 1.6
+++ TransactionTest.java 11 Jan 2007 13:49:05 -0000 1.7
@@ -2,8 +2,8 @@
import junit.framework.TestCase;
import org.jboss.cache.CacheSPI;
+import org.jboss.cache.DefaultCacheFactory;
import org.jboss.cache.Fqn;
-import org.jboss.cache.factories.DefaultCacheFactory;
import javax.transaction.TransactionManager;
import java.util.Map;
@@ -92,8 +92,14 @@
assertEquals("The same current transaction should be associated with this invocation ctx.", tm.getTransaction(), cache.getInvocationContext().getTransaction());
assertNotNull("Gtx should have been set up by now", cache.getInvocationContext().getGlobalTransaction());
- if (commit) tm.commit();
- else tm.rollback();
+ if (commit)
+ {
+ tm.commit();
+ }
+ else
+ {
+ tm.rollback();
+ }
assertNull("Tx should have been scrubbed", cache.getInvocationContext().getTransaction());
assertNull("Gtx should have been scrubbed", cache.getInvocationContext().getGlobalTransaction());
More information about the jboss-cvs-commits
mailing list