[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/passivation ...
Ben Wang
bwang at jboss.com
Fri Sep 8 05:00:00 EDT 2006
User: bwang
Date: 06/09/08 05:00:00
Modified: tests-50/functional/org/jboss/cache/pojo/passivation
LocalTest.java
Log:
updated.
Revision Changes Path
1.5 +7 -2 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.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- LocalTest.java 8 Sep 2006 07:55:58 -0000 1.4
+++ LocalTest.java 8 Sep 2006 09:00:00 -0000 1.5
@@ -52,6 +52,7 @@
protected void tearDown() throws Exception
{
super.tearDown();
+ cache_.getCache().getRoot().remove(Fqn.fromString("/"));
cache_.stop();
}
@@ -138,10 +139,11 @@
public void testMultipleReference() throws Exception
{
log.info("testMultipleReference() ...");
+ String id1 = "/person/ben";
+ cache_.attach(id1, createPerson("Ben Hogan", 51));
+ Person joe = (Person) cache_.find(id1);
String id = "/person/joe";
cache_.attach(id, createPerson("Joe Black", 31));
- Person joe = (Person) cache_.find(id);
- cache_.attach(id, createPerson("Ben Hogan", 51));
Person ben = (Person) cache_.find(id);
Address addr = new Address();
@@ -172,6 +174,9 @@
Thread.sleep(11000); // default is 3 seconds so joe should have been passivated.
assertEquals("City is ", "Santa Clara", joe.getAddress().getCity());
+
+ cache_.detach(id);
+ cache_.detach(id1);
}
public void testRemoveObject1() throws Exception
More information about the jboss-cvs-commits
mailing list