Package org.osesb.utilities.threadmanaged.test

JUnit tests for the org.osesb.utilities.threadmanaged package.

See:
          Description

Class Summary
BasicThreadManagerTest Basic tests of ThreadManager:

testRunThreadManaged() tests ThreadManager#runThreadManaged(), which runs a single ThreadManaged object and waits for it to complete or timeout. testRunThreadManagedWithTimeout() tests ThreadManager#runThreadManaged() with a ThreadManaged object that always times out. testRunThreadManagedTaskList() tests ThreadManager#runThreadManagedTaskList(), which runs a set of tasks in parallel and waits for them to complete or timeout.

The tests use the following classes which implement IThreadManageable and IPoolableThreadManageable.

GenerateRandomString Some of the Tests in the org.osesb.utilities.threadmanagedpackage use a random String.
ThreadManageableTestClass1 A test class that implements IThreadManageable and IPoolableThreadManageable with an operative method that reverses a String.
ThreadManageableTestClass2 A test class that implements IThreadManageable and IPoolableThreadManageable with an operative method that computes the integer portion of a fraction.
ThreadManageableTestClass3 A test class that implements IThreadManageable and IPoolableThreadManageable with an operative method that runs forever.
 

Package org.osesb.utilities.threadmanaged.test Description

JUnit tests for the org.osesb.utilities.threadmanaged package.