db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker ReferenceTest.java
Date Thu, 20 May 2004 11:00:14 GMT
arminw      2004/05/20 04:00:13

  Modified:    src/test/org/apache/ojb/broker ReferenceTest.java
  Log:
  update test
  
  Revision  Changes    Path
  1.16      +7 -4      db-ojb/src/test/org/apache/ojb/broker/ReferenceTest.java
  
  Index: ReferenceTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/ReferenceTest.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ReferenceTest.java	20 May 2004 09:36:55 -0000	1.15
  +++ ReferenceTest.java	20 May 2004 11:00:13 -0000	1.16
  @@ -50,15 +50,18 @@
           RefObject a = new ObjA();
           RefObject a2 = new ObjA();
           RefObject b = new ObjB();
  +        RefObject b2 = new ObjB();
           RefObject c = new ObjC();
   
           c.setName(name+"_third");
  -        b.setName(name+"_second");
  +        b.setName(name+"_second_1");
  +        b2.setName(name+"_second_2");
           a.setName(name+"_first_1");
           a2.setName(name+"_first_2");
   
           a.setRef(b);
           b.setRef(c);
  +        a2.setRef(b2);
   
           broker.beginTransaction();
           broker.store(a);
  @@ -81,10 +84,10 @@
   
           // test one level depth
           crit = new Criteria();
  -        crit.addEqualTo("ref.name", name+"_second");
  +        crit.addLike("ref.name", name+"_second%");
           q = QueryFactory.newQuery(ObjA.class, crit);
           result = broker.getCollectionByQuery(q);
  -        assertEquals(1, result.size());
  +        assertEquals(2, result.size());
   
           // test n-level depth
           // here the pain starts
  
  
  

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