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

Ben Wang bwang at jboss.com
Mon Jul 17 03:24:10 EDT 2006


  User: bwang   
  Date: 06/07/17 03:24:10

  Modified:    tests-50/functional/org/jboss/cache/pojo  LocalTest.java
  Log:
  Added address sub-field.
  
  Revision  Changes    Path
  1.4       +11 -1     JBossCache/tests-50/functional/org/jboss/cache/pojo/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/LocalTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- LocalTest.java	14 Jul 2006 17:55:27 -0000	1.3
  +++ LocalTest.java	17 Jul 2006 07:24:10 -0000	1.4
  @@ -9,6 +9,7 @@
   import org.jboss.cache.PropertyConfigurator;
   import org.jboss.cache.pojo.test.Person;
   import org.jboss.cache.pojo.test.Student;
  +import org.jboss.cache.pojo.test.Address;
   
   import java.util.ArrayList;
   import java.util.HashMap;
  @@ -57,6 +58,10 @@
         Person p = new Person();
         p.setName(name);
         p.setAge(age);
  +      Address add = new Address();
  +      add.setZip(95123);
  +      add.setCity("San Jose");
  +      p.setAddress(add);
         cache_.attach(id, p);
         return p;
      }
  @@ -67,6 +72,10 @@
         p.setName(name);
         p.setAge(age);
         p.setYear(grade);
  +      Address add = new Address();
  +      add.setZip(95123);
  +      add.setCity("San Jose");
  +      p.setAddress(add);
         cache_.attach(id, p);
         return p;
      }
  @@ -90,7 +99,8 @@
      {
         Person joe = createPerson("/person/test3", "Joe", 32);
         cache_.detach("/person/test3");
  -      assertNull("Underlying cache content ", cache_.getCache().get("/person/test3"));
  +      assertNull("Underlying cache content " + cache_.getCache().printDetails(),
  +              cache_.getCache().get("/person/test3"));
      }
   
      public void testDynamicRefSwapping() throws Exception
  
  
  



More information about the jboss-cvs-commits mailing list