org.springframework.batch.retry.policy
Class ItemWriterRetryPolicyTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.retry.policy.ItemWriterRetryPolicyTests

public class ItemWriterRetryPolicyTests
extends TestCase


Constructor Summary
ItemWriterRetryPolicyTests()
           
 
Method Summary
protected  void setUp()
           
 void testCacheCapacity()
           
 void testCacheCapacityNotReachedIfRecovered()
           
 void testCanRetry()
           
 void testClose()
           
 void testExhaustedClearsHistoryAfterLastAttempt()
           
 void testFailedItemIdentifier()
           
 void testKeyGeneratorNotConsistentAfterFailure()
           
 void testOpenSunnyDay()
           
 void testOpenTwice()
           
 void testOpenWithWrongCallbackType()
           
 void testRecover()
           
 void testRecoverWithParent()
           
 void testRecoverWithTemplate()
           
 void testRegisterThrowable()
           
 void testRetryCount()
           
 void testRetryCountPreservedBetweenRetries()
           
 void testSetCacheAndHasFailed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemWriterRetryPolicyTests

public ItemWriterRetryPolicyTests()
Method Detail

setUp

protected void setUp()
              throws Exception
Throws:
Exception

testOpenSunnyDay

public void testOpenSunnyDay()
                      throws Exception
Throws:
Exception

testOpenWithWrongCallbackType

public void testOpenWithWrongCallbackType()

testCanRetry

public void testCanRetry()

testRegisterThrowable

public void testRegisterThrowable()

testClose

public void testClose()
               throws Exception
Throws:
Exception

testOpenTwice

public void testOpenTwice()
                   throws Exception
Throws:
Exception

testRecover

public void testRecover()
                 throws Exception
Throws:
Exception

testRecoverWithParent

public void testRecoverWithParent()
                           throws Exception
Throws:
Exception

testFailedItemIdentifier

public void testFailedItemIdentifier()
                              throws Exception
Throws:
Exception

testRecoverWithTemplate

public void testRecoverWithTemplate()
                             throws Exception
Throws:
Exception

testExhaustedClearsHistoryAfterLastAttempt

public void testExhaustedClearsHistoryAfterLastAttempt()
                                                throws Exception
Throws:
Exception

testRetryCount

public void testRetryCount()
                    throws Exception
Throws:
Exception

testRetryCountPreservedBetweenRetries

public void testRetryCountPreservedBetweenRetries()
                                           throws Exception
Throws:
Exception

testSetCacheAndHasFailed

public void testSetCacheAndHasFailed()
                              throws Exception
Throws:
Exception

testKeyGeneratorNotConsistentAfterFailure

public void testKeyGeneratorNotConsistentAfterFailure()
                                               throws Throwable
Throws:
Throwable

testCacheCapacity

public void testCacheCapacity()
                       throws Exception
Throws:
Exception

testCacheCapacityNotReachedIfRecovered

public void testCacheCapacityNotReachedIfRecovered()
                                            throws Exception
Throws:
Exception


Copyright © 2008 SpringSource. All Rights Reserved.