[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/passivation ...
Ben Wang
bwang at jboss.com
Tue Nov 7 21:08:10 EST 2006
User: bwang
Date: 06/11/07 21:08:10
Modified: tests-50/functional/org/jboss/cache/pojo/passivation
LocalTest.java
Log:
upd
Revision Changes Path
1.9 +9 -7 JBossCache/tests-50/functional/org/jboss/cache/pojo/passivation/LocalTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LocalTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/passivation/LocalTest.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- LocalTest.java 7 Nov 2006 03:58:58 -0000 1.8
+++ LocalTest.java 8 Nov 2006 02:08:10 -0000 1.9
@@ -63,7 +63,9 @@
{
super.tearDown();
cache_.getCache().removeNode(Fqn.fromString("/"));
+ cache_.getCache().removeCacheListener(listener_);
cache_.stop();
+ Thread.sleep(1000);
}
// public void testDummy() {}
@@ -97,7 +99,7 @@
String id = "person";
Person joe = createPerson("Joe Black", 20);
cache_.attach(id, joe);
- Thread.sleep(9000); // default is 3 seconds so joe should have been passivated.
+ Thread.sleep(9100); // default is 3 seconds so joe should have been passivated.
// assertFalse("Node should be evicted ",
// cache_.getCache().exists(id));
@@ -117,7 +119,7 @@
String id = "person";
Person joe = createPerson("Joe Black", 20);
cache_.attach(id, joe);
- Thread.sleep(9000); // default is 3 seconds so joe should have been passivated.
+ Thread.sleep(9100); // default is 3 seconds so joe should have been passivated.
assertFalse("Node should be evicted ",
cache_.getCache().hasChild(new Fqn(id)));
@@ -137,7 +139,7 @@
String id = "person";
Person joe = createPerson("Joe Black", 20);
cache_.attach(id, joe);
- Thread.sleep(9000); // default is 3 seconds so joe should have been passivated.
+ Thread.sleep(9100); // default is 3 seconds so joe should have been passivated.
// assertFalse("Node should be evicted ",
// cache_.getCache().exists(id));
@@ -190,7 +192,7 @@
addr.setCity("Santa Clara");
assertEquals(add1.getCity(), add2.getCity());
- Thread.sleep(9000); // default is 3 seconds so joe should have been passivated.
+ Thread.sleep(9100); // default is 3 seconds so joe should have been passivated.
// assertFalse("Node should be evicted ",
// cache_.getCache().exists("/person/joe"));
assertFalse("Node should be evicted ",
@@ -198,7 +200,7 @@
assertEquals("City is ", "Santa Clara", add2.getCity());
- Thread.sleep(9000); // default is 3 seconds so joe should have been passivated.
+ Thread.sleep(9100); // default is 3 seconds so joe should have been passivated.
assertEquals("City is ", "Santa Clara", joe.getAddress().getCity());
cache_.detach(id);
@@ -230,7 +232,7 @@
addr.setCity("Santa Clara");
assertEquals(add1.getCity(), add2.getCity());
- Thread.sleep(9000);
+ Thread.sleep(9100);
// Remove pojo joe will relocate the address field to ben's
cache_.detach("/person/joe");
add2 = (Address) ((Person) cache_.find("/person/ben")).getAddress();
@@ -246,7 +248,7 @@
child.setLink(parent);
cache_.attach("/link/parent", parent);
- Thread.sleep(9000);
+ Thread.sleep(9100);
assertEquals("parent", ((Link) cache_.find("/link/parent")).getName());
assertEquals("child", ((Link) cache_.find("/link/parent")).getLink().getName());
}
More information about the jboss-cvs-commits
mailing list