bb.util
Class ThreadMeasurer.UnitTest

java.lang.Object
  extended by bb.util.ThreadMeasurer.UnitTest
Enclosing class:
ThreadMeasurer

public static class ThreadMeasurer.UnitTest
extends Object

See the Overview page of the project's javadocs for a general description of this unit test class.


Nested Class Summary
private static class ThreadMeasurer.UnitTest.DoubleLockAquirer
           
 
Constructor Summary
ThreadMeasurer.UnitTest()
           
 
Method Summary
static void establishDeadlocks()
          Creates 2 threads which deadlock.
 void test_getDeadlockState()
          Warning: after this method returns, there will be dealocked threads in existence, but they will have daemon status.
 void test_getThreadState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadMeasurer.UnitTest

public ThreadMeasurer.UnitTest()
Method Detail

test_getThreadState

public void test_getThreadState()

test_getDeadlockState

public void test_getDeadlockState()
                           throws Exception
Warning: after this method returns, there will be dealocked threads in existence, but they will have daemon status.

Throws:
Exception

establishDeadlocks

public static void establishDeadlocks()
                               throws InterruptedException
Creates 2 threads which deadlock. Is public so that other classes may access.

Throws:
InterruptedException