use of software.amazon.awssdk.core.exception.ApiCallTimeoutException in project aws-sdk-java-v2 by aws.
the class ExceptionReportingUtilsTest method modifyException_shouldReturnModifiedException.
@Test
public void modifyException_shouldReturnModifiedException() {
ApiCallTimeoutException modifiedException = ApiCallTimeoutException.create(1000);
RequestExecutionContext context = context(new ModifyExceptionInterceptor(modifiedException));
assertThat(ExceptionReportingUtils.reportFailureToInterceptors(context, SdkClientException.create("test"))).isEqualTo(modifiedException);
}
Aggregations