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 ar...@apache.org on 2004/06/17 00:24:18 UTC

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

arminw      2004/06/16 15:24:18

  Modified:    src/test/org/apache/ojb/broker M2NTest.java
  Log:
  do more checks
  
  Revision  Changes    Path
  1.6       +9 -1      db-ojb/src/test/org/apache/ojb/broker/M2NTest.java
  
  Index: M2NTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/M2NTest.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- M2NTest.java	31 May 2004 22:57:21 -0000	1.5
  +++ M2NTest.java	16 Jun 2004 22:24:18 -0000	1.6
  @@ -187,6 +187,14 @@
           broker.retrieveAllReferences(readMovie);
           assertEquals(3, readMovie.getActors().size());
   
  +        resultActor = broker.getCollectionByQuery(queryActor);
  +        assertEquals(3, resultActor.size());
  +        Actor readActor = (Actor) resultActor.iterator().next();
  +        // auto-retrieve false
  +        assertTrue(readActor.getMovies() == null || readActor.getMovies().size() == 0);
  +        broker.retrieveAllReferences(readActor);
  +        assertEquals(1, readActor.getMovies().size());
  +
           // We try to delete all objects
           // first do unlink the m:n references
           broker.beginTransaction();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org