org.sadun.util.watchdog
Class TWatchDog_BaseTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.sadun.util.watchdog.TWatchDog_BaseTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
TWatchDog_SyncTest

public abstract class TWatchDog_BaseTest
extends junit.framework.TestCase

Version:
1.0
Author:
Cristiano Sadun

Field Summary
protected static java.util.Random random
           
protected static long SHUTDOWN_TIMEOUT
           
protected  org.sadun.util.watchdog.TWatchDog tw
           
protected  TWatchDogListener twListener
           
 
Constructor Summary
protected TWatchDog_BaseTest(java.lang.String name, boolean synchronous)
           
 
Method Summary
protected  void setUp()
           
protected  void sleepSome()
           
static junit.framework.TestSuite suite()
           
protected  void tearDown()
           
 void testNotificationCycle()
           
 void testRegistry()
           
 void testShutdown()
           
 void testStart()
           
 
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
 

Field Detail

tw

protected org.sadun.util.watchdog.TWatchDog tw

twListener

protected TWatchDogListener twListener

SHUTDOWN_TIMEOUT

protected static final long SHUTDOWN_TIMEOUT
See Also:
Constant Field Values

random

protected static java.util.Random random
Constructor Detail

TWatchDog_BaseTest

protected TWatchDog_BaseTest(java.lang.String name,
                             boolean synchronous)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testRegistry

public void testRegistry()

testStart

public void testStart()

testShutdown

public void testShutdown()

testNotificationCycle

public void testNotificationCycle()

sleepSome

protected void sleepSome()

suite

public static junit.framework.TestSuite suite()