[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/transaction ...
Manik Surtani
msurtani at jboss.com
Tue Jan 2 08:13:20 EST 2007
User: msurtani
Date: 07/01/02 08:13:20
Modified: tests/functional/org/jboss/cache/transaction
TransactionTest.java
Log:
- Fixed issues with AbstractNode.equals()
- Fixed NPE with Cache.getChildrenNames()
- Renamed TreeCacheMarshaller to CacheMarshaller to be in line with the Cache/CacheSPI naming
Revision Changes Path
1.22 +24 -32 JBossCache/tests/functional/org/jboss/cache/transaction/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/transaction/TransactionTest.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- TransactionTest.java 30 Dec 2006 19:48:45 -0000 1.21
+++ TransactionTest.java 2 Jan 2007 13:13:20 -0000 1.22
@@ -37,7 +37,7 @@
* Tests transactional access to a local CacheImpl.
* Note: we use DummpyTranasctionManager to replace jta
*
- * @version $Id: TransactionTest.java,v 1.21 2006/12/30 19:48:45 msurtani Exp $
+ * @version $Id: TransactionTest.java,v 1.22 2007/01/02 13:13:20 msurtani Exp $
*/
public class TransactionTest extends TestCase
{
@@ -333,9 +333,7 @@
}
}
- public void testNodeDeletionRollback2()
- {
- try
+ public void testNodeDeletionRollback2() throws Exception
{
cache.put("/a/b/c", null);
cache.put("/a/b/c1", null);
@@ -348,9 +346,9 @@
assertNull(cache.get("/a/b"));
assertNull(cache.get("/a"));
Set children = cache.getChildrenNames("/a/b");
- assertNull(children);
+ assertTrue(children.isEmpty());
children = cache.getChildrenNames("/a");
- assertNull(children);
+ assertTrue(children.isEmpty());
tx.rollback();
assertNotNull(cache.get("/a"));
assertNotNull(cache.get("/a/b"));
@@ -360,12 +358,6 @@
children = cache.getChildrenNames("/a/b");
assertEquals(3, children.size());
}
- catch (Throwable t)
- {
- t.printStackTrace();
- fail(t.toString());
- }
- }
public void testNodeCreation() throws Exception
More information about the jboss-cvs-commits
mailing list