[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/aop ...
Ben Wang
bwang at belmont.prod.atl2.jboss.com
Wed Aug 30 11:54:00 EDT 2006
User: bwang
Date: 06/08/30 11:54:00
Modified: tests/functional/org/jboss/cache/aop Tag:
Branch_JBossCache_1_4_0 ObjectGraphAopTest.java
Log:
no message
Revision Changes Path
No revision
No revision
1.16.2.1 +21 -0 JBossCache/tests/functional/org/jboss/cache/aop/ObjectGraphAopTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ObjectGraphAopTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/aop/ObjectGraphAopTest.java,v
retrieving revision 1.16
retrieving revision 1.16.2.1
diff -u -b -r1.16 -r1.16.2.1
--- ObjectGraphAopTest.java 9 Apr 2006 12:33:49 -0000 1.16
+++ ObjectGraphAopTest.java 30 Aug 2006 15:54:00 -0000 1.16.2.1
@@ -135,6 +135,27 @@
* Pure parent child relationsip
* @throws Exception
*/
+ public void testCircularReference() throws Exception
+ {
+// try {Thread.sleep(10000); } catch (Exception e) {};
+ log.info("testCircularReference() ...");
+ Link parent = new Link("parent");
+ Link child = new Link("child");
+ parent.setLink(child);
+ child.setLink(parent);
+ cache_.putObject("/link/parent", parent);
+ assertEquals("parent", ((Link) cache_.getObject("/link/parent")).getName());
+ assertEquals("child", ((Link) cache_.getObject("/link/parent")).getLink().getName());
+
+ // Would fail if uncoment becuase of internal mapping is non-canonical.
+// child.setLink(parent);
+ parent.setLink(child);
+ }
+
+ /**
+ * Pure parent child relationsip
+ * @throws Exception
+ */
public void testCircularReference1() throws Exception
{
// try {Thread.sleep(10000); } catch (Exception e) {};
More information about the jboss-cvs-commits
mailing list