diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/exception/handler/RethrowOnThresholdExceptionHandlerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/exception/handler/RethrowOnThresholdExceptionHandlerTests.java index 24459e79d..7a2109e6c 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/exception/handler/RethrowOnThresholdExceptionHandlerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/exception/handler/RethrowOnThresholdExceptionHandlerTests.java @@ -70,9 +70,10 @@ public class RethrowOnThresholdExceptionHandlerTests extends TestCase { return "RuntimeException"; } }); - handler.setThresholds(Collections.singletonMap("RuntimeException", new Integer(1))); + handler.setThresholds(Collections.singletonMap("RuntimeException", new Integer(2))); // No exception... handler.handleException(context, new RuntimeException("Foo")); + handler.handleException(context, new RuntimeException("Foo")); try { handler.handleException(context, new RuntimeException("Foo")); fail("Expected RuntimeException");