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 aThreadPoolTest
object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
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 aThreadPoolTest
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 classjunit.framework.TestCase
-
tearDown
protected void tearDown()
- Overrides:
tearDown
in 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.
-
-