Refactor SpringRetryTest
This commit is contained in:
parent
761603c76a
commit
3a566b4cce
|
@ -32,6 +32,9 @@ public class SpringRetryTest {
|
||||||
|
|
||||||
@Test(expected = RuntimeException.class)
|
@Test(expected = RuntimeException.class)
|
||||||
public void givenTemplateRetryService_whenCallWithException_thenRetry() {
|
public void givenTemplateRetryService_whenCallWithException_thenRetry() {
|
||||||
retryTemplate.execute(arg0 -> myService.templateRetryService());
|
retryTemplate.execute(arg0 -> {
|
||||||
|
myService.templateRetryService();
|
||||||
|
return null;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue