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

Inheritance diagram for alma::acs::container::CleaningThreadFactoryTest:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::container::CleaningThreadFactoryTest:
Collaboration graph
[legend]

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]

References logger.

Referenced by testStoppingThreads(), and testUserThreadException().

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

References alma::acs::container::CleaningDaemonThreadFactory::cleanUp(), alma::acs::testsupport::LogRecordCollectingLogger::clearLogRecords(), alma::acs::testsupport::LogRecordCollectingLogger::getCollectedLogRecords(), logger, alma::acs::container::CleaningDaemonThreadFactory::newThread(), and sleep().

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

Member Data Documentation


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2