Fix compilation failure

This commit is contained in:
Stephane Nicoll
2022-10-13 11:07:00 +02:00
parent 2e7a73c15a
commit c202b5dcc1
2 changed files with 2 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ import org.springframework.retry.interceptor.MethodInvocationRecoverer;
import org.springframework.retry.support.RetrySynchronizationManager;
import org.springframework.util.ClassUtils;
import org.springframework.util.ReflectionUtils;
import org.springframework.util.ReflectionUtils.MethodCallback;
import org.springframework.util.StringUtils;
/**

View File

@@ -295,7 +295,7 @@ public class RecoverAnnotationRecoveryHandlerTests {
Method foo = ReflectionUtils.findMethod(RecoverByComposedRetryableAnnotationName.class, "foo", String.class);
RecoverAnnotationRecoveryHandler<?> handler = new RecoverAnnotationRecoveryHandler<Integer>(
new RecoverByComposedRetryableAnnotationName(), foo);
assertThat(handler.recover(new Object[] { "Kevin" }, new RuntimeException("Planned"))).isEqualTo(4);
assertEquals(4, handler.recover(new Object[] { "Kevin" }, new RuntimeException("Planned")));
}
private static class InAccessibleRecover {