Package edu.jas.util
Class DistThreadPoolTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- 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
Constructors Constructor Description DistThreadPoolTest(java.lang.String name)Constructs aDistThreadPoolTestobject.
-
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()voidtestDistThreadPool1()Tests if the created DistThreadPool is empty.voidtestDistThreadPool2()Tests if the created DistThreadPool is non empty.voidtestDistThreadPool3()Tests if the created DistThreadPool has no jobs.voidtestDistThreadPool4()Tests if the created DistThreadPool has jobs.voidtestDistThreadPool5()Tests if the created DistThreadPool has many jobs.voidtestDistThreadPool6()Tests if the created DistThreadPool has correct strategy.voidtestDistThreadPool7()Tests if the created DistThreadPool 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
-
DistThreadPoolTest
public DistThreadPoolTest(java.lang.String name)
Constructs aDistThreadPoolTestobject.- 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
-
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.
-
-