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

Ben Wang bwang at jboss.com
Tue Oct 10 04:08:06 EDT 2006


  User: bwang   
  Date: 06/10/10 04:08:06

  Modified:    tests-50/functional/org/jboss/cache/pojo/collection 
                        CachedListTest.java
  Log:
  JBCACHE-795 ListIterator exception
  
  Revision  Changes    Path
  1.4       +9 -0      JBossCache/tests-50/functional/org/jboss/cache/pojo/collection/CachedListTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CachedListTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/collection/CachedListTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- CachedListTest.java	17 Sep 2006 07:42:36 -0000	1.3
  +++ CachedListTest.java	10 Oct 2006 08:08:06 -0000	1.4
  @@ -122,6 +122,10 @@
   
      public void testIterator() throws Throwable
      {
  +      languages = new ArrayList();
  +      Iterator it0 = languages.iterator();
  +      assertFalse("Iterator should be empty ", it0.hasNext());
  +
         stage();
   
         Iterator it = languages.iterator();
  @@ -141,6 +145,11 @@
   
      public void testListIterator() throws Throwable
      {
  +      languages = new ArrayList();
  +      ListIterator it0 = languages.listIterator();
  +      assertFalse("Iterator should be empty ", it0.hasNext());
  +      assertFalse("Iterator should be empty ", it0.hasPrevious());
  +
         stage();
   
         ListIterator li = languages.listIterator();
  
  
  



More information about the jboss-cvs-commits mailing list