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 QueryTest.java
Date Fri, 01 Apr 2005 20:43:25 GMT
brj         2005/04/01 12:43:25

  Modified:    src/test/org/apache/ojb/broker QueryTest.java
  Log:
  use QueryFactory
  
  Revision  Changes    Path
  1.84      +5 -4      db-ojb/src/test/org/apache/ojb/broker/QueryTest.java
  
  Index: QueryTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/QueryTest.java,v
  retrieving revision 1.83
  retrieving revision 1.84
  diff -u -r1.83 -r1.84
  --- QueryTest.java	25 Mar 2005 19:06:28 -0000	1.83
  +++ QueryTest.java	1 Apr 2005 20:43:24 -0000	1.84
  @@ -21,6 +21,7 @@
   import org.apache.ojb.broker.query.QueryByCriteria;
   import org.apache.ojb.broker.query.QueryByExample;
   import org.apache.ojb.broker.query.QueryFactory;
  +import org.apache.ojb.broker.query.ReportQuery;
   import org.apache.ojb.broker.query.ReportQueryByCriteria;
   import org.apache.ojb.junit.PBTestCase;
   
  @@ -57,7 +58,7 @@
           broker.commitTransaction();
           broker.clearCache();
   
  -        QueryByExample query = new QueryByExample(group);
  +        QueryByExample query = QueryFactory.newQueryByExample(group);
           ObjectRepository.Group newGroup = (ObjectRepository.Group) broker.getObjectByQuery(query);
           assertNull(newGroup);
   
  @@ -510,7 +511,7 @@
       public void testSubQuery1()
       {
   
  -        ReportQueryByCriteria subQuery;
  +        ReportQuery subQuery;
           Criteria subCrit = new Criteria();
           Criteria crit = new Criteria();
   
  @@ -536,7 +537,7 @@
       public void testSubQuery3()
       {
   
  -        ReportQueryByCriteria subQuery;
  +        ReportQuery subQuery;
           Criteria subCrit = new Criteria();
           Criteria crit = new Criteria();
   
  @@ -562,7 +563,7 @@
       public void testSubQuery4()
       {
   
  -        ReportQueryByCriteria subQuery;
  +        ReportQuery subQuery;
           Criteria subCrit = new Criteria();
           Criteria crit = new Criteria();
   
  
  
  

---------------------------------------------------------------------
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