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 BrokerExamples.java
Date Fri, 01 Apr 2005 20:40:19 GMT
brj         2005/04/01 12:40:19

  Modified:    src/test/org/apache/ojb/broker BrokerExamples.java
  Log:
  use QueryFactory
  
  Revision  Changes    Path
  1.23      +1 -1      db-ojb/src/test/org/apache/ojb/broker/BrokerExamples.java
  
  Index: BrokerExamples.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/BrokerExamples.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- BrokerExamples.java	18 Dec 2004 14:01:16 -0000	1.22
  +++ BrokerExamples.java	1 Apr 2005 20:40:19 -0000	1.23
  @@ -118,7 +118,7 @@
           broker.clearCache();
           Article cached = (Article) broker.serviceObjectCache().lookup(oid);
           assertNull("After flushing Object should be not in cache", cached);
  -        Article article = (Article) broker.getObjectByQuery(new QueryByIdentity(oid));
  +        Article article = (Article) broker.getObjectByQuery(QueryFactory.newQueryByIdentity(oid));
           // only works if a cache is used, else this test fails
           cached = (Article) broker.serviceObjectCache().lookup(oid);
           assertNotNull("now object should be found in cache", cached);
  
  
  

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