org.ourgrid.test.threadServices
Class ThreadListsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ourgrid.test.threadServices.ThreadListsTest
All Implemented Interfaces:
junit.framework.Test, SelectiveTest, StressTest

public class ThreadListsTest
extends junit.framework.TestCase
implements StressTest

Test for the ThreadLists class.


Constructor Summary
ThreadListsTest(java.lang.String str)
          Constructor.
 
Method Summary
 void testIncludeInRunningThreads()
          Verifies if a thread was included in runningThreads after calling the includeInRunningThreads method.
 void testIncludeInStartedThreads()
          Verifies if a thread was included in startedThreads after calling the includeInRunningThreads method.
 void testIsThreadRunning()
          Tests the waitUntilThreadStartedRunning method.
 void testIsThreadStarted()
          Tests the isThreadStarted method.
 void testSeveralMethodsOneThread()
          Tests the ThreadServices class, verifying a certain Thread state.
 void testSeveralMethodsTwoThreads()
          Tests the ThreadServices class, verifying two Threads' states.
 void testSeveralMethodsTwoThreadsSimilar()
          Tests several methods from ThreadServices with two threads.
 void testWaitUntilAllThreadsDie()
          Tests the waitUntilThreadsDie method.
 void testWaitUntilThreadIsRunning()
          Tests the ThreadServices.waitUntilThreadHasStartedRunning method.
 void testWaitUntilThreadIsWaiting()
          Tests the waitUntilThreadIsWaiting method.
 void testWaitUntilThreadStopsRunning()
          Tests the waitUntilThreadHasFinished method.
 void testWaitUntilWorkIsDoneNotifying()
          Tests the waitUntilWorkIsDone method.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Constructor Detail

ThreadListsTest

public ThreadListsTest(java.lang.String str)
Constructor.

Parameters:
str - The test name.
Method Detail

testSeveralMethodsOneThread

public void testSeveralMethodsOneThread()
Tests the ThreadServices class, verifying a certain Thread state.


testSeveralMethodsTwoThreads

public void testSeveralMethodsTwoThreads()
Tests the ThreadServices class, verifying two Threads' states.


testSeveralMethodsTwoThreadsSimilar

public void testSeveralMethodsTwoThreadsSimilar()
Tests several methods from ThreadServices with two threads.


testWaitUntilWorkIsDoneNotifying

public void testWaitUntilWorkIsDoneNotifying()
Tests the waitUntilWorkIsDone method.


testWaitUntilAllThreadsDie

public void testWaitUntilAllThreadsDie()
Tests the waitUntilThreadsDie method.


testWaitUntilThreadStopsRunning

public void testWaitUntilThreadStopsRunning()
Tests the waitUntilThreadHasFinished method.


testWaitUntilThreadIsRunning

public void testWaitUntilThreadIsRunning()
Tests the ThreadServices.waitUntilThreadHasStartedRunning method.


testWaitUntilThreadIsWaiting

public void testWaitUntilThreadIsWaiting()
Tests the waitUntilThreadIsWaiting method.


testIsThreadRunning

public void testIsThreadRunning()
Tests the waitUntilThreadStartedRunning method.


testIncludeInRunningThreads

public void testIncludeInRunningThreads()
Verifies if a thread was included in runningThreads after calling the includeInRunningThreads method.


testIncludeInStartedThreads

public void testIncludeInStartedThreads()
Verifies if a thread was included in startedThreads after calling the includeInRunningThreads method.


testIsThreadStarted

public void testIsThreadStarted()
Tests the isThreadStarted method.