org.apache.geronimo.timer
Class AbstractThreadPooledTimerTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.geronimo.timer.AbstractThreadPooledTimerTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
NontransactionalThreadPooledTimerTest, TransactionalThreadPooledTimerTest

public abstract class AbstractThreadPooledTimerTest
extends junit.framework.TestCase

Version:
$Rev: 155839 $ $Date: 2005-03-01 18:30:08 -0500 (Tue, 01 Mar 2005) $

Nested Class Summary
private  class AbstractThreadPooledTimerTest.MockUserTaskFactory
           
 
Field Summary
private static int COUNT
           
private  EDU.oswego.cs.dl.util.concurrent.SynchronizedInt counter
           
private static long DELAY
           
protected  ExecutorTaskFactory executableWorkFactory
           
private static java.lang.String key
           
private static long SLOP
           
private  ThreadPool threadPool
           
private  ThreadPooledTimer timer
           
protected  TransactionContextManager transactionContextManager
           
private  java.lang.Object userId
           
private  java.lang.Object userKey
           
protected  UserTaskFactory userTaskFactory
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
AbstractThreadPooledTimerTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testCancel()
           
 void testCancelInCommittedTransaction()
           
 void testCancelInRolledBackTransaction()
           
 void testCancelInUnspecifiedTxContext()
           
 void testPersistence()
           
 void testPersistenceInUnspecifiedTxContext()
           
 void testRepeatCountFromPersisted()
           
 void testTasks()
           
 void testTasksInTransaction()
           
 void testTasksInUnspecifiedTxContext()
           
 
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

COUNT

private static final int COUNT
See Also:
Constant Field Values

DELAY

private static final long DELAY
See Also:
Constant Field Values

SLOP

private static final long SLOP
See Also:
Constant Field Values

key

private static final java.lang.String key
See Also:
Constant Field Values

userId

private java.lang.Object userId

threadPool

private ThreadPool threadPool

timer

private ThreadPooledTimer timer

counter

private EDU.oswego.cs.dl.util.concurrent.SynchronizedInt counter

transactionContextManager

protected TransactionContextManager transactionContextManager

executableWorkFactory

protected ExecutorTaskFactory executableWorkFactory

userTaskFactory

protected UserTaskFactory userTaskFactory

userKey

private java.lang.Object userKey
Constructor Detail

AbstractThreadPooledTimerTest

public AbstractThreadPooledTimerTest()
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

testTasks

public void testTasks()
               throws java.lang.Exception
Throws:
java.lang.Exception

testCancel

public void testCancel()
                throws java.lang.Exception
Throws:
java.lang.Exception

testPersistence

public void testPersistence()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testTasksInUnspecifiedTxContext

public void testTasksInUnspecifiedTxContext()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testCancelInUnspecifiedTxContext

public void testCancelInUnspecifiedTxContext()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testPersistenceInUnspecifiedTxContext

public void testPersistenceInUnspecifiedTxContext()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

testTasksInTransaction

public void testTasksInTransaction()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testCancelInCommittedTransaction

public void testCancelInCommittedTransaction()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testCancelInRolledBackTransaction

public void testCancelInRolledBackTransaction()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testRepeatCountFromPersisted

public void testRepeatCountFromPersisted()
                                  throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2005 Apache Software Foundation. All Rights Reserved.