db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker PersistenceBrokerTest.java
Date Fri, 01 Apr 2005 20:42:33 GMT
brj         2005/04/01 12:42:33

  Modified:    src/test/org/apache/ojb/broker PersistenceBrokerTest.java
  Log:
  use QueryFactory
  
  Revision  Changes    Path
  1.50      +1 -2      db-ojb/src/test/org/apache/ojb/broker/PersistenceBrokerTest.java
  
  Index: PersistenceBrokerTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/PersistenceBrokerTest.java,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- PersistenceBrokerTest.java	25 Mar 2005 19:06:28 -0000	1.49
  +++ PersistenceBrokerTest.java	1 Apr 2005 20:42:33 -0000	1.50
  @@ -17,7 +17,6 @@
   import org.apache.ojb.broker.query.Criteria;
   import org.apache.ojb.broker.query.Query;
   import org.apache.ojb.broker.query.QueryByCriteria;
  -import org.apache.ojb.broker.query.QueryByIdentity;
   import org.apache.ojb.broker.query.QueryFactory;
   import org.apache.ojb.broker.query.ReportQueryByCriteria;
   import org.apache.ojb.junit.PBTestCase;
  @@ -1143,7 +1142,7 @@
           broker.commitTransaction();
           broker.clearCache();
   
  -        InterfaceProductGroup pg = (InterfaceProductGroup) broker.getObjectByQuery(new
QueryByIdentity(samplePG));
  +        InterfaceProductGroup pg = (InterfaceProductGroup) broker.getObjectByQuery(QueryFactory.newQueryByIdentity(samplePG));
           List list = pg.getAllArticles();
           assertNotNull(list);
           assertEquals(3, list.size());
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message