mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-03 05:19:07 +00:00
Rename Retryable.run() to Retryable.execute()
See gh-34716
This commit is contained in:
@@ -44,7 +44,7 @@ class RetryTemplateTests {
|
||||
int failure;
|
||||
|
||||
@Override
|
||||
public String run() throws Exception {
|
||||
public String execute() throws Exception {
|
||||
if (failure++ < 2) {
|
||||
throw new Exception("Error while invoking greeting service");
|
||||
}
|
||||
@@ -68,7 +68,7 @@ class RetryTemplateTests {
|
||||
|
||||
Retryable<String> retryable = new Retryable<>() {
|
||||
@Override
|
||||
public String run() throws Exception {
|
||||
public String execute() throws Exception {
|
||||
throw exception;
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ class RetryTemplateTests {
|
||||
|
||||
Retryable<String> retryable = new Retryable<>() {
|
||||
@Override
|
||||
public String run() throws TechnicalException {
|
||||
public String execute() throws TechnicalException {
|
||||
throw technicalException;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user