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/cache ObjectCacheTest.java
Date Fri, 01 Apr 2005 20:47:34 GMT
brj         2005/04/01 12:47:34

  Modified:    src/test/org/apache/ojb/broker/cache ObjectCacheTest.java
  Log:
  use QueryFactory
  
  Revision  Changes    Path
  1.6       +7 -7      db-ojb/src/test/org/apache/ojb/broker/cache/ObjectCacheTest.java
  
  Index: ObjectCacheTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/cache/ObjectCacheTest.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ObjectCacheTest.java	5 Dec 2004 19:55:10 -0000	1.5
  +++ ObjectCacheTest.java	1 Apr 2005 20:47:34 -0000	1.6
  @@ -6,14 +6,14 @@
   import org.apache.ojb.broker.Identity;
   import org.apache.ojb.broker.PBKey;
   import org.apache.ojb.broker.PersistenceBroker;
  -import org.apache.ojb.broker.TestHelper;
   import org.apache.ojb.broker.PersistenceConfiguration;
  -import org.apache.ojb.broker.core.PersistenceBrokerImpl;
  +import org.apache.ojb.broker.TestHelper;
   import org.apache.ojb.broker.core.DelegatingPersistenceBroker;
  +import org.apache.ojb.broker.core.PersistenceBrokerImpl;
   import org.apache.ojb.broker.metadata.ConnectionRepository;
   import org.apache.ojb.broker.metadata.MetadataTest;
   import org.apache.ojb.broker.metadata.ObjectCacheDescriptor;
  -import org.apache.ojb.broker.query.QueryByIdentity;
  +import org.apache.ojb.broker.query.QueryFactory;
   import org.apache.ojb.broker.sequence.Repository;
   import org.apache.ojb.junit.PBTestCase;
   
  @@ -423,14 +423,14 @@
               broker_2 = persistenceConf.createPersistenceBroker();
               broker_2.beginTransaction();
   
  -            DefaultCacheObject obj_new_2 = (DefaultCacheObject) broker_2.getObjectByQuery(new
QueryByIdentity(oid));
  +            DefaultCacheObject obj_new_2 = (DefaultCacheObject) broker_2.getObjectByQuery(QueryFactory.newQueryByIdentity(oid));
               String originalName = obj_new_2.getName();
               obj_new_2.setName(obj_new_2.getName() + "_updated");
               broker_2.store(obj_new_2);
   
               // start a second transaction
               broker.beginTransaction();
  -            DefaultCacheObject obj_new = (DefaultCacheObject) broker.getObjectByQuery(new
QueryByIdentity(oid));
  +            DefaultCacheObject obj_new = (DefaultCacheObject) broker.getObjectByQuery(QueryFactory.newQueryByIdentity(oid));
   
               assertEquals(obj.getName(), obj_new.getName());
               assertEquals(originalName, obj.getName());
  @@ -441,7 +441,7 @@
               broker_2.commitTransaction();
               broker_2.close();
   
  -            obj_new = (DefaultCacheObject) broker.getObjectByQuery(new QueryByIdentity(oid));
  +            obj_new = (DefaultCacheObject) broker.getObjectByQuery(QueryFactory.newQueryByIdentity(oid));
               assertSame(obj_new.getName(), obj_new_2.getName());
           }
           finally
  
  
  

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