db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r369602 - /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/compare/OJBPerfTest.java
Date Mon, 16 Jan 2006 23:54:25 GMT
Author: arminw
Date: Mon Jan 16 15:54:19 2006
New Revision: 369602

URL: http://svn.apache.org/viewcvs?rev=369602&view=rev
Log:
fix odmg test

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/compare/OJBPerfTest.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/compare/OJBPerfTest.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/compare/OJBPerfTest.java?rev=369602&r1=369601&r2=369602&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/compare/OJBPerfTest.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/compare/OJBPerfTest.java Mon Jan
16 15:54:19 2006
@@ -472,29 +472,31 @@
     // =====================================================================================
     public static class ODMGPerfTest extends PerfTest
     {
-        private Implementation odmg;
-        private Database db;
-        private TransactionExt m_tx;
-
-        public void init()
+        private static Implementation odmg;
+        private static Database db;
+        static
         {
             try
             {
                 odmg = OJB.getInstance();
                 db = odmg.newDatabase();
                 db.open(TestHelper.DEF_DATABASE_NAME, Database.OPEN_READ_WRITE);
-                m_tx = (TransactionExt) odmg.newTransaction();
             }
             catch (ODMGException e)
             {
                 e.printStackTrace();
             }
         }
+        private TransactionExt m_tx;
+
+        public void init()
+        {
+            m_tx = (TransactionExt) odmg.newTransaction();
+        }
 
         public void tearDown() throws Exception
         {
             if (m_tx.isOpen()) m_tx.abort();
-            //db.close();
         }
 
         public String testName()



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