org.kuali.rice.test
Class ThreadMonitor
java.lang.Object
   org.kuali.rice.test.ThreadMonitor
org.kuali.rice.test.ThreadMonitor
- public class ThreadMonitor 
- extends Object
Some tests will spawn threads which we want to wait for completion on before we move onto the
 next test.  The ThreadMonitor is a place where those outstanding thread can be stored
 and handled by the test harnesses tearDown method.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
 
| Method Summary | 
| static void | addThread(Thread thread)
 | 
| static void | tearDown(long maxWait)Waits for all outstanding monitored threads to complete.
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ThreadMonitor
public ThreadMonitor()
addThread
public static void addThread(Thread thread)
- 
 
tearDown
public static void tearDown(long maxWait)
- Waits for all outstanding monitored threads to complete.  If the
 specified timeout is exceeded for any given thread then the test
 will fail.
 
- 
- Parameters:
- maxWait- maximum number of milliseconds to wait for any particular thread to die
 
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.