edu.jas.util
Class DistThreadPoolTest

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

public class DistThreadPoolTest
extends junit.framework.TestCase

DistThreadPool tests with JUnit.

Author:
Akitoshi Yoshida, Heinz Kredel

Constructor Summary
DistThreadPoolTest(java.lang.String name)
          Constructs a DistThreadPoolTest object.
 
Method Summary
static void main(java.lang.String[] args)
          main.
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testDistThreadPool1()
          Tests if the created DistThreadPool is empty.
 void testDistThreadPool2()
          Tests if the created DistThreadPool is non empty.
 void testDistThreadPool3()
          Tests if the created DistThreadPool has no jobs.
 void testDistThreadPool4()
          Tests if the created DistThreadPool has jobs.
 void testDistThreadPool5()
          Tests if the created DistThreadPool has many jobs.
 void testDistThreadPool6()
          Tests if the created DistThreadPool has correct strategy.
 void testDistThreadPool7()
          Tests if the created DistThreadPool 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
 

Constructor Detail

DistThreadPoolTest

public DistThreadPoolTest(java.lang.String name)
Constructs a DistThreadPoolTest 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

testDistThreadPool1

public void testDistThreadPool1()
Tests if the created DistThreadPool is empty.


testDistThreadPool2

public void testDistThreadPool2()
Tests if the created DistThreadPool is non empty.


testDistThreadPool3

public void testDistThreadPool3()
Tests if the created DistThreadPool has no jobs.


testDistThreadPool4

public void testDistThreadPool4()
Tests if the created DistThreadPool has jobs.


testDistThreadPool5

public void testDistThreadPool5()
Tests if the created DistThreadPool has many jobs.


testDistThreadPool6

public void testDistThreadPool6()
Tests if the created DistThreadPool has correct strategy.


testDistThreadPool7

public void testDistThreadPool7()
Tests if the created DistThreadPool has jobs and correct strategy.