public class ThreadPoolTest extends junit.framework.TestCase
| Constructor and Description |
|---|
ThreadPoolTest(java.lang.String name)
Constructs a
ThreadPoolTest object. |
| Modifier and Type | Method and 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.
|
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, toStringpublic ThreadPoolTest(java.lang.String name)
ThreadPoolTest object.name - String.public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
protected void setUp()
setUp in class junit.framework.TestCaseprotected void tearDown()
tearDown in class junit.framework.TestCasepublic void testThreadPool1()
public void testThreadPool2()
public void testThreadPool3()
public void testThreadPool4()
public void testThreadPool5()
public void testThreadPool6()
public void testThreadPool7()