org.springframework.batch.core.step.item
Class SimpleRetryExceptionHandlerTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.core.step.item.SimpleRetryExceptionHandlerTests

public class SimpleRetryExceptionHandlerTests
extends TestCase

Author:
Dave Syer

Constructor Summary
SimpleRetryExceptionHandlerTests()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testNoRethrowWhenRetryNotExhausted()
          Test method for SimpleRetryExceptionHandler.handleException(org.springframework.batch.repeat.RepeatContext, java.lang.Throwable).
 void testRethrowWhenFatal()
          Test method for SimpleRetryExceptionHandler.handleException(org.springframework.batch.repeat.RepeatContext, java.lang.Throwable).
 void testRethrowWhenRetryExhausted()
          Test method for SimpleRetryExceptionHandler.handleException(org.springframework.batch.repeat.RepeatContext, java.lang.Throwable).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRetryExceptionHandlerTests

public SimpleRetryExceptionHandlerTests()
Method Detail

setUp

protected void setUp()
              throws Exception
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Throws:
Exception

testRethrowWhenRetryExhausted

public void testRethrowWhenRetryExhausted()
                                   throws Throwable
Test method for SimpleRetryExceptionHandler.handleException(org.springframework.batch.repeat.RepeatContext, java.lang.Throwable).

Throws:
Throwable

testNoRethrowWhenRetryNotExhausted

public void testNoRethrowWhenRetryNotExhausted()
                                        throws Throwable
Test method for SimpleRetryExceptionHandler.handleException(org.springframework.batch.repeat.RepeatContext, java.lang.Throwable).

Throws:
Throwable

testRethrowWhenFatal

public void testRethrowWhenFatal()
                          throws Throwable
Test method for SimpleRetryExceptionHandler.handleException(org.springframework.batch.repeat.RepeatContext, java.lang.Throwable).

Throws:
Throwable


Copyright © 2008 SpringSource. All Rights Reserved.