[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/pojo/region ...
Ben Wang
bwang at jboss.com
Wed Feb 21 22:14:05 EST 2007
User: bwang
Date: 07/02/21 22:14:05
Modified: tests/functional/org/jboss/cache/pojo/region LocalTest.java
Log:
getchild() is no longer valid as a peek as it uses get underneath.
Revision Changes Path
1.2 +3 -2 JBossCache/tests/functional/org/jboss/cache/pojo/region/LocalTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LocalTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/pojo/region/LocalTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- LocalTest.java 13 Jan 2007 15:55:06 -0000 1.1
+++ LocalTest.java 22 Feb 2007 03:14:05 -0000 1.2
@@ -105,6 +105,7 @@
Fqn fqn = new Fqn(Fqn.fromString(REGION), InternalConstant.JBOSS_INTERNAL);
assertTrue("Internal region node should exist ",
cache_.getCache().getRoot().hasChild(fqn));
+ System.out.println("Cache content: " +((org.jboss.cache.CacheImpl)cache_.getCache()).printDetails());
}
public void testModification() throws Exception
@@ -126,7 +127,7 @@
Fqn fqn = new Fqn(Fqn.fromString(REGION), InternalConstant.JBOSS_INTERNAL);
Node n = cache_.getCache().getRoot().getChild(fqn);
assertTrue("Internal region node should not exist ",
- n.getChildren().size() == 0);
+ n.getChildren() != null);
}
public void testDynamicRefSwapping() throws Exception
@@ -201,7 +202,7 @@
Fqn fqn = new Fqn(Fqn.fromString(REGION), InternalConstant.JBOSS_INTERNAL);
Node n = cache_.getCache().getRoot().getChild(fqn);
assertTrue("Internal region node should not exist ",
- n.getChildren().size() == 0);
+ n.getChildren() != null);
hobbies = ben.getHobbies();
if ((hobbies instanceof ClassProxy))
More information about the jboss-cvs-commits
mailing list