Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::container::CleaningThreadFactoryTest Class Reference

List of all members.

Public Member Functions

void testNoOp ()
void testStoppingThreads () throws Exception
void testUserThreadException ()

Protected Member Functions

void setUp () throws Exception
void tearDown () throws Exception

Private Member Functions

void sleep (int millis)

Private Attributes

LogRecordCollectingLogger logger

Detailed Description

Tests the thread factory used by ContainerServices#getThreadFactory(), which can kill surviving user threads.
Author:
hsommer created Apr 29, 2005 3:19:11 PM


Member Function Documentation

void alma::acs::container::CleaningThreadFactoryTest::setUp  )  throws Exception [inline, protected]
 

void alma::acs::container::CleaningThreadFactoryTest::sleep int  millis  )  [inline, private]
 

void alma::acs::container::CleaningThreadFactoryTest::tearDown  )  throws Exception [inline, protected]
 

void alma::acs::container::CleaningThreadFactoryTest::testNoOp  )  [inline]
 

void alma::acs::container::CleaningThreadFactoryTest::testStoppingThreads  )  throws Exception [inline]
 

Creates 4 threads such that they have different behavior and status when cleanUp is called on the thread factory:

  1. thread that will have died neatly (the expected behavior of user threads)
  2. thread that will be sleeping
  3. thread that will be busy
  4. thread that will not yet have been started
This test verifies that

void alma::acs::container::CleaningThreadFactoryTest::testUserThreadException  )  [inline]
 

Verifies that a warning is logged when a user thread throws an otherwise uncaught exception.


Member Data Documentation

LogRecordCollectingLogger alma::acs::container::CleaningThreadFactoryTest::logger [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:52:30 2009 for ACS Java API by doxygen 1.3.8