[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/api ...
Manik Surtani
msurtani at jboss.com
Tue Jan 2 09:37:14 EST 2007
User: msurtani
Date: 07/01/02 09:37:14
Modified: tests/functional/org/jboss/cache/api
NodeReplicatedMoveTest.java
Log:
Move() related bugs
Revision Changes Path
1.8 +6 -5 JBossCache/tests/functional/org/jboss/cache/api/NodeReplicatedMoveTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NodeReplicatedMoveTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/NodeReplicatedMoveTest.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- NodeReplicatedMoveTest.java 31 Dec 2006 03:01:20 -0000 1.7
+++ NodeReplicatedMoveTest.java 2 Jan 2007 14:37:14 -0000 1.8
@@ -124,6 +124,7 @@
public void testReplTxCommit() throws Exception
{
+ Fqn A_B = new Fqn(A, B);
nodeA = rootNode.addChild(A);
nodeB = nodeA.addChild(B);
@@ -140,9 +141,9 @@
tm.begin();
cache[0].move(nodeB.getFqn(), Fqn.ROOT);
- assertEquals(vA, cache[0].getRoot().getChild(A).get(k));
- assertEquals(vB, cache[0].getRoot().getChild(B).get(k));
-
+ assertEquals(vA, cache[0].get(A, k));
+ assertNull(cache[0].get(A_B, k));
+ assertEquals(vB, cache[0].get(B, k));
tm.commit();
assertEquals(vA, cache[0].getRoot().getChild(A).get(k));
@@ -169,8 +170,8 @@
tm.begin();
cache[0].move(nodeB.getFqn(), Fqn.ROOT);
- assertEquals(vA, cache[0].getRoot().getChild(A).get(k));
- assertEquals(vB, cache[0].getRoot().getChild(B).get(k));
+ assertEquals(vA, cache[0].get(A, k));
+ assertEquals(vB, cache[0].get(B, k));
tm.rollback();
More information about the jboss-cvs-commits
mailing list