|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
edu.jas.util.ThreadPoolTest
public class ThreadPoolTest
ThreadPool tests with JUnit.
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 |
Constructor Detail |
---|
public ThreadPoolTest(java.lang.String name)
ThreadPoolTest
object.
name
- String.Method Detail |
---|
public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
protected void setUp()
setUp
in class junit.framework.TestCase
protected void tearDown()
tearDown
in class junit.framework.TestCase
public void testThreadPool1()
public void testThreadPool2()
public void testThreadPool3()
public void testThreadPool4()
public void testThreadPool5()
public void testThreadPool6()
public void testThreadPool7()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |