Package edu.jas.util
Class ThreadPoolTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- edu.jas.util.ThreadPoolTest
-
- All Implemented Interfaces:
junit.framework.Test
public class ThreadPoolTest extends junit.framework.TestCase
ThreadPool tests with JUnit.- Author:
- Akitoshi Yoshida, Heinz Kredel
-
-
Constructor Summary
Constructors Constructor Description ThreadPoolTest(java.lang.String name)Constructs aThreadPoolTestobject.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)main.protected voidsetUp()static junit.framework.Testsuite()protected voidtearDown()voidtestThreadPool1()Tests if the created ThreadPool is empty.voidtestThreadPool2()Tests if the created ThreadPool is non empty.voidtestThreadPool3()Tests if the created ThreadPool has no jobs.voidtestThreadPool4()Tests if the created ThreadPool has jobs.voidtestThreadPool5()Tests if the created ThreadPool has many jobs.voidtestThreadPool6()Tests if the created ThreadPool has correct strategy.voidtestThreadPool7()Tests if the created ThreadPool has jobs and correct strategy.-
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
-
-
-
-
Constructor Detail
-
ThreadPoolTest
public ThreadPoolTest(java.lang.String name)
Constructs aThreadPoolTestobject.- 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:
setUpin classjunit.framework.TestCase
-
tearDown
protected void tearDown()
- Overrides:
tearDownin classjunit.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.
-
-