Refactor SpringRetryTest
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user