[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo ...

Ben Wang bwang at jboss.com
Sun Sep 17 03:09:12 EDT 2006


  User: bwang   
  Date: 06/09/17 03:09:12

  Modified:    tests-50/functional/org/jboss/cache/pojo 
                        CircularGraphTest.java
  Log:
  JIRA JBCACHE-757
  
  Revision  Changes    Path
  1.3       +17 -0     JBossCache/tests-50/functional/org/jboss/cache/pojo/CircularGraphTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CircularGraphTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/CircularGraphTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- CircularGraphTest.java	8 Sep 2006 07:55:59 -0000	1.2
  +++ CircularGraphTest.java	17 Sep 2006 07:09:12 -0000	1.3
  @@ -240,6 +240,23 @@
         assertEquals("child", ((Link) list2.get(0)).getLink().getName());
      }
   
  +   /**
  +    *
  +    * @throws Exception
  +    */
  +   public void testCircularReference8() throws Exception
  +   {
  +      log.info("testCircularReference8() ...");
  +      Link parent = new Link("parent");
  +      Link child = new Link("child");
  +      parent.setLink(child);
  +      child.setLink(parent);
  +
  +      cache_.attach("parent", parent);
  +      parent.setLink(child); // again
  +      child.setLink(parent);
  +   }
  +
      public void testCircularAndSharedReferences() throws Exception
      {
         log.info("testCircularAndSharedReferences() ...");
  
  
  



More information about the jboss-cvs-commits mailing list