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 br...@apache.org on 2004/02/16 20:40:50 UTC

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

brj         2004/02/16 11:40:50

  Modified:    src/test/org/apache/ojb/broker MtoNTest.java
  Log:
  use positive ids
  
  Revision  Changes    Path
  1.11      +5 -1      db-ojb/src/test/org/apache/ojb/broker/MtoNTest.java
  
  Index: MtoNTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/MtoNTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- MtoNTest.java	20 Dec 2003 20:55:36 -0000	1.10
  +++ MtoNTest.java	16 Feb 2004 19:40:50 -0000	1.11
  @@ -366,7 +366,9 @@
       // Bidirectional m:n relationship using Collection
       public void testStoreBidirectionalCollection()
       {
  -        int id = (int)System.currentTimeMillis();
  +        int id = (int)System.currentTimeMillis();       
  +        id = Math.abs(id);
  +        
           Person personA = new Person();
           personA.setId(id++);
           personA.setFirstname("Anton");
  @@ -400,6 +402,8 @@
       public void testStoreBidirectionalArray()
       {
           int id = (int)System.currentTimeMillis();
  +        id = Math.abs(id);
  +
           PersonWithArray personA = new PersonWithArray();
           personA.setId(id++);
           personA.setFirstname("Anton");
  
  
  

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