db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r463707 - /db/ojb/trunk/src/test/org/apache/ojb/broker/NoPkReferenceTest.java
Date Fri, 13 Oct 2006 15:26:35 GMT
Author: arminw
Date: Fri Oct 13 08:26:34 2006
New Revision: 463707

URL: http://svn.apache.org/viewvc?view=rev&rev=463707
Log:
fix timestamp/name issue

Modified:
    db/ojb/trunk/src/test/org/apache/ojb/broker/NoPkReferenceTest.java

Modified: db/ojb/trunk/src/test/org/apache/ojb/broker/NoPkReferenceTest.java
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/test/org/apache/ojb/broker/NoPkReferenceTest.java?view=diff&rev=463707&r1=463706&r2=463707
==============================================================================
--- db/ojb/trunk/src/test/org/apache/ojb/broker/NoPkReferenceTest.java (original)
+++ db/ojb/trunk/src/test/org/apache/ojb/broker/NoPkReferenceTest.java Fri Oct 13 08:26:34
2006
@@ -23,6 +23,7 @@
 import org.apache.ojb.broker.query.Criteria;
 import org.apache.ojb.broker.query.Query;
 import org.apache.ojb.broker.query.QueryFactory;
+import org.apache.ojb.broker.util.GUIDFactory;
 import org.apache.ojb.junit.PBTestCase;
 
 /**
@@ -40,6 +41,8 @@
         junit.textui.TestRunner.main(arr);
     }
     
+    private GUIDFactory guidFactory = new GUIDFactory();
+
     private ProductGroup_2 createProductGroup(String groupName)
     {
         ProductGroup_2 pg;
@@ -71,7 +74,7 @@
         Iterator iter;
         Identity pgIdentity;
 
-        String name = "Grp-NoPkReferenceTest" + System.currentTimeMillis();
+        String name = "Grp-NoPkReferenceTest_" + guidFactory.next();
         ProductGroup_2 pg = createProductGroup(name);
         Article_2 article;
         
@@ -113,7 +116,7 @@
         Collection result;
         Iterator iter;
 
-        String name = "Grp-NoPkReferenceTest" + System.currentTimeMillis();
+        String name = "Grp-NoPkReferenceTest_" + guidFactory.next();
         ProductGroup_2 pg = createProductGroup(name);
         Article_2 article;
         
@@ -147,7 +150,7 @@
         Iterator iter;
         Integer pgId;
 
-        String name = "Grp-NoPkReferenceTest" + System.currentTimeMillis();
+        String name = "Grp-NoPkReferenceTest_"  + guidFactory.next();
         ProductGroup_2 pg = createProductGroup(name);
         Article_2 article;
         
@@ -184,11 +187,6 @@
             super();
         }
 
-        /**
-         * @param pGroupId
-         * @param pGroupName
-         * @param pDescription
-         */
         public ProductGroup_2(String pGroupName, String pDescription)
         {
             super(null, pGroupName, pDescription);



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