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 ar...@apache.org on 2007/03/15 02:04:37 UTC

svn commit: r518411 - /db/ojb/trunk/src/test/org/apache/ojb/odmg/LockingMultithreadedTest.java

Author: arminw
Date: Wed Mar 14 18:04:36 2007
New Revision: 518411

URL: http://svn.apache.org/viewvc?view=rev&rev=518411
Log:
print test info

Modified:
    db/ojb/trunk/src/test/org/apache/ojb/odmg/LockingMultithreadedTest.java

Modified: db/ojb/trunk/src/test/org/apache/ojb/odmg/LockingMultithreadedTest.java
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/test/org/apache/ojb/odmg/LockingMultithreadedTest.java?view=diff&rev=518411&r1=518410&r2=518411
==============================================================================
--- db/ojb/trunk/src/test/org/apache/ojb/odmg/LockingMultithreadedTest.java (original)
+++ db/ojb/trunk/src/test/org/apache/ojb/odmg/LockingMultithreadedTest.java Wed Mar 14 18:04:36 2007
@@ -67,6 +67,8 @@
         storeObject(targetObject);
 
         System.out.println("** Start multithreaded lock test **");
+        String statistic = ((ImplementationImpl) odmg).getLockManager().getLockInfo();
+        System.out.println("Lock-Statistic at start: " + statistic);
         Thread.sleep(500);
         TestCaseRunnable tct [] = new TestCaseRunnable[concurrentThreads];
         for (int i = 0; i < concurrentThreads; i++)
@@ -85,8 +87,9 @@
         System.out.println("*** Result of multithreaded lock test ***");
         System.out.println(result.toString());
         //System.out.println(targetObject.getReference().getName());
-        String statistic = ((ImplementationImpl) odmg).getLockManager().getLockInfo();
-        System.out.println("Lock-Statistic: " + statistic);
+        statistic = ((ImplementationImpl) odmg).getLockManager().getLockInfo();
+        System.out.println("Lock-Statistic end: " + statistic);
+        System.out.println("** Start multithreaded lock test end **");
     }
 
     private LockObject createLockObjectWithRef()



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