[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/api ...
Manik Surtani
msurtani at jboss.com
Wed Jan 17 11:24:07 EST 2007
User: msurtani
Date: 07/01/17 11:24:07
Modified: tests/functional/org/jboss/cache/api NodeMoveAPITest.java
Log:
JBCACHE-565
Revision Changes Path
1.21 +13 -13 JBossCache/tests/functional/org/jboss/cache/api/NodeMoveAPITest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NodeMoveAPITest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/NodeMoveAPITest.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- NodeMoveAPITest.java 11 Jan 2007 13:49:05 -0000 1.20
+++ NodeMoveAPITest.java 17 Jan 2007 16:24:07 -0000 1.21
@@ -291,12 +291,12 @@
nodeG.put(k, vE);
*/
- assertTrue(rootNode.hasChild(A));
- assertTrue(rootNode.hasChild(B));
- assertFalse(rootNode.hasChild(C));
- assertTrue(nodeA.hasChild(C));
- assertTrue(nodeC.hasChild(D));
- assertTrue(nodeD.hasChild(E));
+ assertNotNull(cache.peek(A, false));
+ assertNotNull(cache.peek(B, false));
+ assertNull(cache.peek(C, false));
+ assertNotNull(cache.peek(new Fqn(A, C), false));
+ assertNotNull(cache.peek(new Fqn(new Fqn(A, C), D), false));
+ assertNotNull(cache.peek(new Fqn(new Fqn(new Fqn(A, C), D), E), false));
// test data
assertEquals(vA, nodeA.get(k));
@@ -358,14 +358,14 @@
Fqn old_D = new Fqn(old_C, D);
Fqn old_E = new Fqn(old_D, E);
- assertTrue(rootNode.hasChild(A));
- assertTrue(rootNode.hasChild(B));
- assertFalse(rootNode.hasChild(C));
- assertFalse(nodeA.hasChild(C));
- assertTrue(nodeB.hasChild(C));
+ assertNotNull(cache.peek(A, false));
+ assertNotNull(cache.peek(B, false));
+ assertNull(cache.peek(C, false));
+ assertNull(cache.peek(new Fqn(A, C), false));
+ assertNotNull(cache.peek(new Fqn(B, C), false));
- assertTrue(nodeC.hasChild(D));
- assertTrue(nodeD.hasChild(E));
+ assertNotNull(cache.peek(new Fqn(new Fqn(B, C), D), false));
+ assertNotNull(cache.peek(new Fqn(new Fqn(new Fqn(B, C), D), E), false));
// test data
assertEquals(vA, nodeA.get(k));
More information about the jboss-cvs-commits
mailing list