From 3a566b4cce5fadaf55fcd17de43b3ba6ca866914 Mon Sep 17 00:00:00 2001 From: pivovarit Date: Thu, 19 Jan 2017 14:13:45 +0100 Subject: [PATCH] Refactor SpringRetryTest --- .../test/java/org/baeldung/springretry/SpringRetryTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-all/src/test/java/org/baeldung/springretry/SpringRetryTest.java b/spring-all/src/test/java/org/baeldung/springretry/SpringRetryTest.java index 3027d67d9e..2f3411957e 100644 --- a/spring-all/src/test/java/org/baeldung/springretry/SpringRetryTest.java +++ b/spring-all/src/test/java/org/baeldung/springretry/SpringRetryTest.java @@ -32,6 +32,9 @@ public class SpringRetryTest { @Test(expected = RuntimeException.class) public void givenTemplateRetryService_whenCallWithException_thenRetry() { - retryTemplate.execute(arg0 -> myService.templateRetryService()); + retryTemplate.execute(arg0 -> { + myService.templateRetryService(); + return null; + }); } }