From 6e5e60af641c7b51ba30d68e80b9ccce07188ccc Mon Sep 17 00:00:00 2001 From: dsyer Date: Tue, 4 Mar 2008 19:15:43 +0000 Subject: [PATCH] Use threshold = 2 for test (non-trivial limit). --- .../handler/RethrowOnThresholdExceptionHandlerTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");