[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/pojo ...
Jason Thomas Greene
jgreene at jboss.com
Fri Jun 22 19:01:08 EDT 2007
User: jgreene
Date: 07/06/22 19:01:08
Modified: tests/functional/org/jboss/cache/pojo
BuddyReplicationTest.java
Log:
Fix JBCACHE-1111
Revision Changes Path
1.2 +2 -31 JBossCache/tests/functional/org/jboss/cache/pojo/BuddyReplicationTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BuddyReplicationTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/pojo/BuddyReplicationTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- BuddyReplicationTest.java 20 Jun 2007 20:46:55 -0000 1.1
+++ BuddyReplicationTest.java 22 Jun 2007 23:01:08 -0000 1.2
@@ -44,7 +44,7 @@
* A BuddyReplicatedTest.
*
* @author <a href="brian.stansberry at jboss.com">Brian Stansberry</a>
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class BuddyReplicationTest extends TestCase
{
@@ -111,19 +111,6 @@
private Person getReplicatedPerson(String id) throws PojoCacheException
{
- // FIXME -- this is a hacky way to force gravitation via the Cache API.
- // Adding the Option should be done before the PojoCache.find() call.
- // I do it this way just to prove the node gets gravitated and that
- // the problem is dereferencing to _JBossInternal_ is will fail
- cache1.getCache().getInvocationContext().getOptionOverrides().setForceDataGravitation(true);
- Node node = cache1.getCache().getRoot().getChild(Fqn.fromString(id));
- assertNotNull("Node found at " + id, node);
- Set keys = node.getKeys();
- assertTrue("Node at " + id + " has keys", keys.size() > 0);
- // FIXME also hacky -- prove that the node has PojoCache data
- assertTrue("Node at " + id + " has key " + PojoReference.KEY, keys.contains(PojoReference.KEY));
-
-
Person repl = (Person) cache1.find(id);
assertNotNull("Person found at " + id, repl);
return repl;
@@ -188,20 +175,4 @@
assertEquals("Harald Gliebe", repl.getName());
cache.detach("/person/test2");
}
-
- public void testInheritance() throws Exception
- {
- Student joe = createStudent("/person/joe", "Joe", 32, "Senior");
- joe.setName("Joe Black");
- assertEquals(joe.getName(), "Joe Black");
- cache1.getCache().getInvocationContext().getOptionOverrides().setForceDataGravitation(true);
- Student joe1 = (Student) getReplicatedPerson("/person/joe");
- assertEquals(joe1.getName(), "Joe Black");
- joe1.setYear("Junior");
- assertEquals(joe.getYear(), "Junior");
- assertEquals(joe1.getYear(), "Junior");
- cache.detach("/person/joe");
- cache.detach("/person/joe");
- }
-
}
More information about the jboss-cvs-commits
mailing list