Fix compilation failure
This commit is contained in:
@@ -30,6 +30,7 @@ import org.springframework.retry.interceptor.MethodInvocationRecoverer;
|
|||||||
import org.springframework.retry.support.RetrySynchronizationManager;
|
import org.springframework.retry.support.RetrySynchronizationManager;
|
||||||
import org.springframework.util.ClassUtils;
|
import org.springframework.util.ClassUtils;
|
||||||
import org.springframework.util.ReflectionUtils;
|
import org.springframework.util.ReflectionUtils;
|
||||||
|
import org.springframework.util.ReflectionUtils.MethodCallback;
|
||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ public class RecoverAnnotationRecoveryHandlerTests {
|
|||||||
Method foo = ReflectionUtils.findMethod(RecoverByComposedRetryableAnnotationName.class, "foo", String.class);
|
Method foo = ReflectionUtils.findMethod(RecoverByComposedRetryableAnnotationName.class, "foo", String.class);
|
||||||
RecoverAnnotationRecoveryHandler<?> handler = new RecoverAnnotationRecoveryHandler<Integer>(
|
RecoverAnnotationRecoveryHandler<?> handler = new RecoverAnnotationRecoveryHandler<Integer>(
|
||||||
new RecoverByComposedRetryableAnnotationName(), foo);
|
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 {
|
private static class InAccessibleRecover {
|
||||||
|
|||||||
Reference in New Issue
Block a user