db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: jakarta-ojb/src/test/org/apache/ojb/broker PersistenceBrokerTest.java
Date Thu, 02 Jan 2003 09:39:46 GMT
brj         2003/01/02 01:39:46

  Modified:    src/test/org/apache/ojb/broker PersistenceBrokerTest.java
  Log:
  compare counted and retrieved sizes
  
  Revision  Changes    Path
  1.21      +6 -0      jakarta-ojb/src/test/org/apache/ojb/broker/PersistenceBrokerTest.java
  
  Index: PersistenceBrokerTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/test/org/apache/ojb/broker/PersistenceBrokerTest.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- PersistenceBrokerTest.java	24 Dec 2002 14:06:45 -0000	1.20
  +++ PersistenceBrokerTest.java	2 Jan 2003 09:39:46 -0000	1.21
  @@ -611,14 +611,20 @@
           Article a3 = createArticle(id3);
           a3.setArticleName(name);
           broker.store(a3);
  +        
           // 3. check if all items are found
           col = broker.getCollectionByQuery(query);
           assertEquals("size of collection should be three", 3, col.size());
  +
  +        assertEquals("size of count should be three", 3, broker.getCount(query));
  +        
           iter = col.iterator();
           while (iter.hasNext())
           {
               assertEquals("should be same value", name, ((InterfaceArticle) iter.next()).getArticleName());
           }
  +        
  +        
       }
   
       public void testGetCollectionByQueryWithStartAndEnd() throws Exception
  
  
  

Mime
View raw message