You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by th...@apache.org on 2003/05/15 21:58:12 UTC

cvs commit: db-ojb/src/test/org/apache/ojb/broker QueryTest.java ConnectionFactoryTest.java

thma        2003/05/15 12:58:12

  Modified:    src/java/org/apache/ojb/otm/cache GlobalCache.java
               src/test/org/apache/ojb/broker QueryTest.java
                        ConnectionFactoryTest.java
  Log:
  where do all these unused imports come from?
  
  Revision  Changes    Path
  1.6       +0 -1      db-ojb/src/java/org/apache/ojb/otm/cache/GlobalCache.java
  
  Index: GlobalCache.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/otm/cache/GlobalCache.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- GlobalCache.java	14 May 2003 22:15:36 -0000	1.5
  +++ GlobalCache.java	15 May 2003 19:58:12 -0000	1.6
  @@ -4,7 +4,6 @@
   import org.apache.ojb.otm.OTMKit;
   import org.apache.ojb.otm.cache.store.ObjectStore;
   import org.apache.ojb.otm.copy.ObjectCopyStrategy;
  -import org.apache.ojb.otm.lock.LockType;
   
   /**
    *
  
  
  
  1.31      +2 -2      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.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- QueryTest.java	10 May 2003 15:49:46 -0000	1.30
  +++ QueryTest.java	15 May 2003 19:58:12 -0000	1.31
  @@ -367,7 +367,7 @@
   		crit = new Criteria();
   		crit.addEqualTo("allArticlesInGroup.articleId", new Integer(cd.getArticleId()));
   		query = new QueryByCriteria(ProductGroup.class, crit);
  -		query.addPathClass("allArticlesInGroup", CdArticle.class);
  +		query.setPathClass("allArticlesInGroup", CdArticle.class);
   		pg = (ProductGroupProxy) broker.getObjectByQuery(query);
   
   		// this test can only succeed in singlevm mode:
  @@ -777,7 +777,7 @@
           crit.addLike("allArticlesInGroup.musicians", "%");
   
           QueryByCriteria q = QueryFactory.newQuery(ProductGroup.class, crit, true);
  -        q.addPathClass("allArticlesInGroup",CdArticle.class);
  +        q.setPathClass("allArticlesInGroup",CdArticle.class);
   
           Iterator iter = broker.getIteratorByQuery(q);
           while (iter.hasNext())
  
  
  
  1.4       +1 -7      db-ojb/src/test/org/apache/ojb/broker/ConnectionFactoryTest.java
  
  Index: ConnectionFactoryTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/ConnectionFactoryTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ConnectionFactoryTest.java	10 May 2003 11:54:10 -0000	1.3
  +++ ConnectionFactoryTest.java	15 May 2003 19:58:12 -0000	1.4
  @@ -9,14 +9,8 @@
   import org.apache.ojb.broker.accesslayer.LookupException;
   import org.apache.ojb.broker.metadata.JdbcConnectionDescriptor;
   import org.apache.ojb.broker.metadata.MetadataManager;
  -import org.apache.ojb.broker.query.Criteria;
  -import org.apache.ojb.broker.query.QueryByCriteria;
  -import org.apache.ojb.broker.query.QueryFactory;
  -import org.apache.ojb.broker.util.sequence.HighLowSequence;
   
   import java.sql.Connection;
  -import java.util.ArrayList;
  -import java.util.Collection;
   
   /**
    * ConnectionFactory implementation related tests.