|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.samskivert.util.tests.SerialExecutorTest
public class SerialExecutorTest
Tests the SerialExecutor class.
| Nested Class Summary | |
|---|---|
protected class |
SerialExecutorTest.Sleeper
|
| Field Summary | |
|---|---|
protected int |
_doubleints
|
protected int |
_exits
|
protected int |
_interrupts
|
protected Thread |
_main
|
protected Queue<Runnable> |
_queue
|
protected int |
_results
|
protected int |
_sleeps
|
protected int |
_timeouts
|
| Fields inherited from interface com.samskivert.util.RunQueue |
|---|
AWT |
| Constructor Summary | |
|---|---|
SerialExecutorTest()
|
|
| Method Summary | |
|---|---|
protected void |
assertCount(String field,
int value,
int expected)
|
boolean |
isDispatchThread()
|
static void |
main(String[] args)
|
void |
postRunnable(Runnable r)
Post the specified Runnable to be run on the RunQueue. |
void |
runTest()
|
static junit.framework.Test |
suite()
|
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, name, run, run, runBare, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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 |
| Field Detail |
|---|
protected Thread _main
protected Queue<Runnable> _queue
protected int _sleeps
protected int _interrupts
protected int _doubleints
protected int _exits
protected int _results
protected int _timeouts
| Constructor Detail |
|---|
public SerialExecutorTest()
| Method Detail |
|---|
public void runTest()
runTest in class junit.framework.TestCase
protected void assertCount(String field,
int value,
int expected)
public void postRunnable(Runnable r)
RunQueue
postRunnable in interface RunQueuepublic boolean isDispatchThread()
isDispatchThread in interface RunQueuepublic static junit.framework.Test suite()
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||