OPEN - BATCH-554: *StepFactoryBeans should have a list of exceptions that do and don't cause rollback.

renamed txValidExceptionClasses to noRollbackForExceptionClasses
This commit is contained in:
robokaso
2008-04-30 14:18:03 +00:00
parent 5d60375e1a
commit 642375e4e7
2 changed files with 22 additions and 16 deletions

View File

@@ -92,10 +92,10 @@ public class SkipLimitStepFactoryBeanTests extends TestCase {
/**
* Check skippable write exception does not cause rollback when included on
* {@link SkipLimitStepFactoryBean#setTxValidExceptionClasses(Class[])}.
* {@link SkipLimitStepFactoryBean#setNoRollbackForExceptionClasses(Class[])}.
*/
public void testSkipWithoutRethrow() throws Exception {
factory.setTxValidExceptionClasses(new Class[] { SkippableRuntimeException.class });
factory.setNoRollbackForExceptionClasses(new Class[] { SkippableRuntimeException.class });
AbstractStep step = (AbstractStep) factory.getObject();
StepExecution stepExecution = new StepExecution(step.getName(), jobExecution);