[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/eviction ...
Manik Surtani
msurtani at jboss.com
Thu Feb 22 02:01:32 EST 2007
User: msurtani
Date: 07/02/22 02:01:32
Modified: tests/functional/org/jboss/cache/eviction
OptimisticEvictionTest.java
Log:
- Better cleanup after test
- fixed NPE with ConcurrentHashMap construction
Revision Changes Path
1.13 +12 -0 JBossCache/tests/functional/org/jboss/cache/eviction/OptimisticEvictionTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: OptimisticEvictionTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/OptimisticEvictionTest.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- OptimisticEvictionTest.java 7 Feb 2007 22:06:39 -0000 1.12
+++ OptimisticEvictionTest.java 22 Feb 2007 07:01:32 -0000 1.13
@@ -44,6 +44,18 @@
{
if (cache != null)
{
+ // shut down any existing txs
+ try
+ {
+ if (cache.getTransactionManager().getTransaction() != null)
+ {
+ cache.getTransactionManager().rollback();
+ }
+ }
+ catch (Exception e)
+ {
+ // ignore
+ }
cache.stop();
cache = null;
}
More information about the jboss-cvs-commits
mailing list