[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer ...
Manik Surtani
msurtani at jboss.com
Mon Oct 16 05:16:40 EDT 2006
User: msurtani
Date: 06/10/16 05:16:40
Modified: tests-50/functional/org/jboss/cache/pojo/statetransfer
StateTransferAopTestBase.java
Log:
- Fixed reference to obsolete ExtendedFileCacheLoader
- Fixed test based on region queueing
Revision Changes Path
1.3 +8 -2 JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer/StateTransferAopTestBase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: StateTransferAopTestBase.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer/StateTransferAopTestBase.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- StateTransferAopTestBase.java 16 Oct 2006 09:11:47 -0000 1.2
+++ StateTransferAopTestBase.java 16 Oct 2006 09:16:40 -0000 1.3
@@ -39,7 +39,7 @@
* Tests state transfer in PojoCache.
*
* @author <a href="mailto://brian.stansberry@jboss.com">Brian Stansberry</a>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public abstract class StateTransferAopTestBase extends TestCase
{
@@ -162,6 +162,12 @@
assertNull("/a/b/1 not transferred per policy", cache2.find(A_B_1));
assertNull("/a/b/2 not transferred per policy", cache2.find(A_B_2));
+ // TODO: Reinstate once we have proper FLUSH working.
+ // This test relies on calls to inactive regions being queued and re-run
+ // when the region is activated. After discussions with Brian, the queueing
+ // was removed, presuming FLUSH will fix this. Need to test with FLUSH.
+ // - Manik Surtani (16 Oct 2006)
+/*
cache2.getCache().getRegion(Fqn.fromString("/a/b"), true).activate();
Person ab1 = (Person) cache2.find(A_B_1);
@@ -198,7 +204,6 @@
assertEquals("Name for /a/b/1 is Joe", joe.getName(), ab1.getName());
assertEquals("City for /a/b/1 is Anytown", addr1.getCity(), ab1.getAddress().getCity());
ab2 = (Person) cache1.find(A_B_2);
- ;
assertEquals("Name for /a/b/1 is Jane", jane.getName(), ab2.getName());
assertEquals("City for /a/b/1 is Anytown", addr1.getCity(), ab2.getAddress().getCity());
assertTrue("Address for Joe and Jane is the same object", ab1.getAddress() == ab2.getAddress());
@@ -209,6 +214,7 @@
assertEquals("Name for /a/c/2 is Jill", jill.getName(), ac2.getName());
assertEquals("City for /a/c/2 is Fremont", addr2.getCity(), ac2.getAddress().getCity());
assertTrue("Address for Bob and Jill is the same object", ac1.getAddress() == ac2.getAddress());
+ */
}
public void testPartialStateTransferWithLoader() throws Exception
More information about the jboss-cvs-commits
mailing list