net.sf.sasl.common.schedule
Class QuartzSchedulerServiceAdapterIntegrationTest

java.lang.Object
  extended by net.sf.sasl.common.schedule.QuartzSchedulerServiceAdapterIntegrationTest

public class QuartzSchedulerServiceAdapterIntegrationTest
extends Object

Integration test case for the QuartzSchedulerServiceAdapter and its helper classes. There is no gurantee that the test cases always succeed as of deep problems in testing concurrent things for which no absolute real execution gurantee is given.

Author:
Philipp Förmer

Constructor Summary
QuartzSchedulerServiceAdapterIntegrationTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testGetNoCancel()
          Test case for a callable that gets scheduled and executed without cancellation.
 void testGetTimedWaitWithException()
          Test case for callable that gets scheduled and throws an exception during computation.
 void testGetTimeWaitNoCancel()
          Test case for a callable that gets scheduled and executed without cancellation.
 void testGetTimeWaitTimedOut()
          Test case for a callable that gets scheduled in the far away in the future.
 void testGetTimeWaitWithCancel()
          Test case for a callable that gets scheduled and than cancelled.
 void testGetWithCancel()
          Test case for a callable that gets scheduled and cancelled.
 void testGetWithException()
          Test case for callable that gets scheduled and throws an exception during computation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuartzSchedulerServiceAdapterIntegrationTest

public QuartzSchedulerServiceAdapterIntegrationTest()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

testGetNoCancel

public void testGetNoCancel()
                     throws Exception
Test case for a callable that gets scheduled and executed without cancellation. The result is fetched via get().

Throws:
Exception

testGetTimeWaitNoCancel

public void testGetTimeWaitNoCancel()
                             throws Exception
Test case for a callable that gets scheduled and executed without cancellation. The result is fetched via get(...).

Throws:
Exception

testGetTimeWaitTimedOut

public void testGetTimeWaitTimedOut()
                             throws Exception
Test case for a callable that gets scheduled in the far away in the future. The result is fetched via a short timed wait on get(...).

Throws:
Exception

testGetWithCancel

public void testGetWithCancel()
                       throws Exception
Test case for a callable that gets scheduled and cancelled. The result is fetched via get(). A cancellation exception should than throw.

Throws:
Exception

testGetTimeWaitWithCancel

public void testGetTimeWaitWithCancel()
                               throws Exception
Test case for a callable that gets scheduled and than cancelled. The result is fetched via get(...). A cancellation exception should than throw.

Throws:
Exception

testGetWithException

public void testGetWithException()
                          throws Exception
Test case for callable that gets scheduled and throws an exception during computation. The result is tried to fetch via get().

Throws:
Exception

testGetTimedWaitWithException

public void testGetTimedWaitWithException()
                                   throws Exception
Test case for callable that gets scheduled and throws an exception during computation. The result is tried to fetch via get(...).

Throws:
Exception


Copyright © 2010. All Rights Reserved.