From 1da437fb009cf5d66d94ae76244ab43c692dac82 Mon Sep 17 00:00:00 2001 From: dsyer Date: Mon, 25 Aug 2008 12:08:44 +0000 Subject: [PATCH] OPEN - issue BATCH-777: Parametrise RetryCallback and related interfaces Fixed use of state in stateless retry --- .../springframework/batch/retry/jms/SynchronousTests.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/retry/jms/SynchronousTests.java b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/retry/jms/SynchronousTests.java index 20a83b2b0..a151bc0b3 100644 --- a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/retry/jms/SynchronousTests.java +++ b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/retry/jms/SynchronousTests.java @@ -33,7 +33,6 @@ import org.springframework.batch.item.jms.JmsItemReader; import org.springframework.batch.jms.ExternalRetryInBatchTests; import org.springframework.batch.retry.RetryCallback; import org.springframework.batch.retry.RetryContext; -import org.springframework.batch.retry.RetryState; import org.springframework.batch.retry.support.RetryTemplate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.simple.SimpleJdbcTemplate; @@ -196,9 +195,9 @@ public class SynchronousTests { }); } - }, new RetryState(item)); + }); - // Verify the state after stransactional processing is complete + // Verify the state after transactional processing is complete List msgs = getMessages();