db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r398733 - /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/junit/OJBTestCase.java
Date Mon, 01 May 2006 23:29:21 GMT
Author: arminw
Date: Mon May  1 16:29:19 2006
New Revision: 398733

URL: http://svn.apache.org/viewcvs?rev=398733&view=rev
Log:
run GC after each test

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/junit/OJBTestCase.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/junit/OJBTestCase.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/junit/OJBTestCase.java?rev=398733&r1=398732&r2=398733&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/junit/OJBTestCase.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/junit/OJBTestCase.java Mon May
 1 16:29:19 2006
@@ -59,6 +59,7 @@
                 }
             }
         }
+        Runtime.getRuntime().gc();
     }
 
     /**
@@ -257,7 +258,6 @@
         {
             ClassDescriptor cld = broker.getClassDescriptor(clazz);
             ObjectReferenceDescriptor ref = cld.getCollectionDescriptorByName(referenceField);
-            ref = cld.getCollectionDescriptorByName(referenceField);
             if(ref == null) ref = cld.getObjectReferenceDescriptorByName(referenceField);
             if(ref == null)
             {



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