Skip to content

Commit 3a566b4

Browse files
committed
Refactor SpringRetryTest
1 parent 761603c commit 3a566b4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎spring-all/src/test/java/org/baeldung/springretry/SpringRetryTest.java‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public void givenRetryServiceWithRecovery_whenCallWithException_thenRetryRecover
3232

3333
@Test(expected = RuntimeException.class)
3434
public void givenTemplateRetryService_whenCallWithException_thenRetry() {
35-
retryTemplate.execute(arg0 -> myService.templateRetryService());
35+
retryTemplate.execute(arg0 -> {
36+
myService.templateRetryService();
37+
return null;
38+
});
3639
}
3740
}

0 commit comments

Comments
 (0)