From e6819e3a4706fc09ebfd8c43aabb6b45ff5ada9f Mon Sep 17 00:00:00 2001 From: dhgarrette Date: Sun, 23 Aug 2009 15:38:15 +0000 Subject: [PATCH] fixed error --- .../springframework/batch/jms/ExternalRetryInBatchTests.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/jms/ExternalRetryInBatchTests.java b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/jms/ExternalRetryInBatchTests.java index 5500e6b6a..e31f01535 100644 --- a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/jms/ExternalRetryInBatchTests.java +++ b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/jms/ExternalRetryInBatchTests.java @@ -19,6 +19,7 @@ package org.springframework.batch.jms; import static org.junit.Assert.assertEquals; import java.util.ArrayList; +import java.util.Collections; import java.util.List; import javax.sql.DataSource; @@ -109,7 +110,8 @@ public class ExternalRetryInBatchTests { public void testExternalRetryRecoveryInBatch() throws Exception { assertInitialState(); - retryTemplate.setRetryPolicy(new SimpleRetryPolicy(1)); + retryTemplate.setRetryPolicy(new SimpleRetryPolicy(1, Collections + ., Boolean> singletonMap(Exception.class, true))); repeatTemplate.setCompletionPolicy(new SimpleCompletionPolicy(2));