edu.jas.util
Class ThreadPoolTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.jas.util.ThreadPoolTest
All Implemented Interfaces:
junit.framework.Test

public class ThreadPoolTest
extends junit.framework.TestCase

ThreadPool Test using JUnit


Field Summary
(package private) static int JOBS
           
 
Constructor Summary
ThreadPoolTest(java.lang.String name)
          Constructs a ThreadPoolTest object.
 
Method Summary
static void main(java.lang.String[] args)
          main
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testThreadPool1()
          Tests if the created ThreadPool is empty.
 void testThreadPool2()
          Tests if the created ThreadPool is non empty.
 void testThreadPool3()
          Tests if the created ThreadPool has no jobs.
 void testThreadPool4()
          Tests if the created ThreadPool has jobs.
 void testThreadPool5()
          Tests if the created ThreadPool has many jobs.
 void testThreadPool6()
          Tests if the created ThreadPool has correct strategy
 void testThreadPool7()
          Tests if the created ThreadPool has jobs and correct strategy.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Field Detail

JOBS

static final int JOBS
See Also:
Constant Field Values
Constructor Detail

ThreadPoolTest

public ThreadPoolTest(java.lang.String name)
Constructs a ThreadPoolTest object.

Parameters:
name - String
Method Detail

main

public static void main(java.lang.String[] args)
main


suite

public static junit.framework.Test suite()

setUp

protected void setUp()
Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

testThreadPool1

public void testThreadPool1()
Tests if the created ThreadPool is empty.


testThreadPool2

public void testThreadPool2()
Tests if the created ThreadPool is non empty.


testThreadPool3

public void testThreadPool3()
Tests if the created ThreadPool has no jobs.


testThreadPool4

public void testThreadPool4()
Tests if the created ThreadPool has jobs.


testThreadPool5

public void testThreadPool5()
Tests if the created ThreadPool has many jobs.


testThreadPool6

public void testThreadPool6()
Tests if the created ThreadPool has correct strategy


testThreadPool7

public void testThreadPool7()
Tests if the created ThreadPool has jobs and correct strategy.