commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r899645 - in /commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl: TestGenericKeyedObjectPool.java TestGenericObjectPool.java
Date Fri, 15 Jan 2010 14:31:54 GMT
Author: sebb
Date: Fri Jan 15 14:31:54 2010
New Revision: 899645

URL: http://svn.apache.org/viewvc?rev=899645&view=rev
Log:
Summary info for debug

Modified:
    commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java
    commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java

Modified: commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java?rev=899645&r1=899644&r2=899645&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java
(original)
+++ commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java
Fri Jan 15 14:31:54 2010
@@ -1380,10 +1380,18 @@
             }
         }
         if (DISPLAY_THREAD_DETAILS || wtt.length/2 != failed){
+            System.out.println(
+                    "MaxWait: "+maxWait
+                    +" HoldTime: "+holdTime
+                    +" KeyCount: "+keyCount
+                    +" MaxActive: "+threadsPerKey
+                    +" Threads: "+wtt.length
+                    +" Failed: "+failed
+                    );
             for(int i=0; i < wtt.length; i++){
                 WaitingTestThread wt = wtt[i];
-                System.out.println(""
-                        + " Preborrow: "+(wt.preborrow-origin)
+                System.out.println(
+                        "Preborrow: "+(wt.preborrow-origin)
                         + " Postborrow: "+(wt.postborrow != 0 ? wt.postborrow-origin : -1)
                         + " BorrowTime: "+(wt.postborrow != 0 ? wt.postborrow-wt.preborrow
: -1)
                         + " PostReturn: "+(wt.postreturn != 0 ? wt.postreturn-origin : -1)

Modified: commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java?rev=899645&r1=899644&r2=899645&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java
(original)
+++ commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java
Fri Jan 15 14:31:54 2010
@@ -1584,10 +1584,17 @@
             }
         }
         if (DISPLAY_THREAD_DETAILS || wtt.length/2 != failed){
+            System.out.println(
+                    "MaxWait: "+maxWait
+                    +" HoldTime: "+holdTime
+                    + " MaxActive: "+threads
+                    +" Threads: "+wtt.length
+                    +" Failed: "+failed
+                    );
             for(int i=0; i < wtt.length; i++){
                 WaitingTestThread wt = wtt[i];
-                System.out.println(""
-                        + " Preborrow: "+(wt.preborrow-origin)
+                System.out.println(
+                        "Preborrow: "+(wt.preborrow-origin)
                         + " Postborrow: "+(wt.postborrow != 0 ? wt.postborrow-origin : -1)
                         + " BorrowTime: "+(wt.postborrow != 0 ? wt.postborrow-wt.preborrow
: -1)
                         + " PostReturn: "+(wt.postreturn != 0 ? wt.postreturn-origin : -1)



Mime
View raw message