|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.ourgrid.test.threadServices.ShutdownableThreadTest
public class ShutdownableThreadTest
Tests for the ShutdownnableThread class.
Constructor Summary | |
---|---|
ShutdownableThreadTest(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Some ad-hoc tests. |
protected void |
setUp()
Initializes the ShutdownableRunnable to be used in the tests. |
protected void |
tearDown()
Shutdowns the ShutdownableRunnable. |
void |
testRun()
Tests the run method. |
void |
testRun2()
Another test for the run method. |
void |
testShutdown()
Tests the shutdown method and the thread state after calling it. |
void |
testStart()
Tests the start method and the ThreadServices. |
void |
testStartNotWaiting()
Tests the thread state after calling the start method. |
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 |
Methods inherited from interface junit.framework.Test |
---|
countTestCases, run |
Constructor Detail |
---|
public ShutdownableThreadTest(java.lang.String name)
name
- The Test name.Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public static void main(java.lang.String[] args)
args
- The arguments that can be used inside this method.public void testRun()
public void testRun2()
public void testStart()
public void testStartNotWaiting()
public void testShutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |