db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r521375 - in /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg: DListTest.java DSetTest.java
Date Thu, 22 Mar 2007 17:55:27 GMT
Author: arminw
Date: Thu Mar 22 10:55:26 2007
New Revision: 521375

URL: http://svn.apache.org/viewvc?view=rev&rev=521375
Log:
fix test

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/DListTest.java
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/DSetTest.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/DListTest.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/DListTest.java?view=diff&rev=521375&r1=521374&r2=521375
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/DListTest.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/DListTest.java Thu Mar 22
10:55:26 2007
@@ -33,11 +33,12 @@
         super(name);
     }
 
+    long counter = System.currentTimeMillis();
     protected DObject createObject(String name) throws Exception
     {
         DObject obj = new DObject();
         obj.setName(name);
-        obj.setRandomName("rnd_"+((int)(Math.random()*1000)));
+        obj.setRandomName("rnd_"+ (++counter));
 
         return obj;
     }

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/DSetTest.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/DSetTest.java?view=diff&rev=521375&r1=521374&r2=521375
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/DSetTest.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/DSetTest.java Thu Mar 22
10:55:26 2007
@@ -26,11 +26,12 @@
         super(name);
     }
 
+    long counter = System.currentTimeMillis();
     protected DListTest.DObject createObject(String name) throws Exception
     {
         DListTest.DObject obj = new DListTest.DObject();
         obj.setName(name);
-        obj.setRandomName("rnd_"+((int)(Math.random()*1000)));
+        obj.setRandomName("rnd_"+ (++counter));
 
         return obj;
     }



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