org.springframework.batch.retry.support
Class RetryTemplateTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.retry.support.RetryTemplateTests

public class RetryTemplateTests
extends TestCase

Since:
2.1
Author:
Rob Harrop

Constructor Summary
RetryTemplateTests()
           
 
Method Summary
 void testAlwaysTryAtLeastOnce()
           
 void testBackOffInterrupted()
           
 void testBackOffInvoked()
           
 void testDefaultConfigWithExceptionSubclass()
           
 void testEarlyTermination()
           
 void testFallThroughToEndUnsuccessfully()
           
 void testNestedContexts()
           
 void testNoSuccessRetry()
           
 void testRethrowError()
           
 void testSetExceptions()
           
 void testSuccessfulRetry()
           
 void testThrowableUnwrapping()
          If nested template wraps unclassified Throwable into RetryException the Throwable is unwrapped before passed to collaborators.
 void testThrowableWrapping()
          Throwables that aren't Exception nor Error are wrapped into RetryException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetryTemplateTests

public RetryTemplateTests()
Method Detail

testSuccessfulRetry

public void testSuccessfulRetry()
                         throws Exception
Throws:
Exception

testAlwaysTryAtLeastOnce

public void testAlwaysTryAtLeastOnce()
                              throws Exception
Throws:
Exception

testNoSuccessRetry

public void testNoSuccessRetry()
                        throws Exception
Throws:
Exception

testDefaultConfigWithExceptionSubclass

public void testDefaultConfigWithExceptionSubclass()
                                            throws Exception
Throws:
Exception

testSetExceptions

public void testSetExceptions()
                       throws Exception
Throws:
Exception

testBackOffInvoked

public void testBackOffInvoked()
                        throws Exception
Throws:
Exception

testEarlyTermination

public void testEarlyTermination()
                          throws Exception
Throws:
Exception

testNestedContexts

public void testNestedContexts()
                        throws Exception
Throws:
Exception

testRethrowError

public void testRethrowError()
                      throws Exception
Throws:
Exception

testBackOffInterrupted

public void testBackOffInterrupted()
                            throws Exception
Throws:
Exception

testFallThroughToEndUnsuccessfully

public void testFallThroughToEndUnsuccessfully()
                                        throws Exception
Throws:
Exception

testThrowableWrapping

public void testThrowableWrapping()
                           throws Exception
Throwables that aren't Exception nor Error are wrapped into RetryException.

Throws:
Exception

testThrowableUnwrapping

public void testThrowableUnwrapping()
                             throws Exception
If nested template wraps unclassified Throwable into RetryException the Throwable is unwrapped before passed to collaborators.

Throws:
Exception


Copyright © 2008 SpringSource. All Rights Reserved.