activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r467699 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java
Date Wed, 25 Oct 2006 16:06:21 GMT
Author: chirino
Date: Wed Oct 25 09:06:20 2006
New Revision: 467699

URL: http://svn.apache.org/viewvc?view=rev&rev=467699
Log:
avoid println in the console output

Modified:
    incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java

Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java?view=diff&rev=467699&r1=467698&r2=467699
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java
Wed Oct 25 09:06:20 2006
@@ -79,14 +79,14 @@
 
     public void runTest(Task task) throws Exception {
         int numThreads = Thread.currentThread().getThreadGroup().activeCount();
-        Thread.currentThread().getThreadGroup().list();
+//        Thread.currentThread().getThreadGroup().list();
 
         task.execute();
 
         Thread.yield();
         Thread.sleep(2000); // Wait for the threads to exit on their own
 
-        Thread.currentThread().getThreadGroup().list();
+//        Thread.currentThread().getThreadGroup().list();
         int activeCount = Thread.currentThread().getThreadGroup().activeCount();
         assertTrue("Should be at most one more thread but was: " + activeCount, numThreads
+ 1 <= activeCount);
     }



Mime
View raw message