Use threshold = 2 for test (non-trivial limit).

This commit is contained in:
dsyer
2008-03-04 19:15:43 +00:00
parent 77b6a7c34c
commit 6e5e60af64

View File

@@ -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");