Refactor SpringRetryTest

This commit is contained in:
pivovarit 2017-01-19 14:13:45 +01:00
parent 761603c76a
commit 3a566b4cce
1 changed files with 4 additions and 1 deletions

View File

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