Consistently throw IOException from ReactorNettyClientRequest

This commit renames ReactorNettyClientRequestFactoryTests.

Closes gh-32952
This commit is contained in:
Juergen Hoeller 2024-06-04 22:59:29 +02:00
parent 4323c60513
commit 524da905db
2 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2023 the original author or authors. * Copyright 2002-2024 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -111,7 +111,7 @@ final class ReactorNettyClientRequest extends AbstractStreamingClientHttpRequest
throw ioEx; throw ioEx;
} }
else { else {
throw ex; throw new IOException(ex.getMessage(), cause);
} }
} }
} }

View File

@ -28,8 +28,9 @@ import static org.assertj.core.api.Assertions.assertThat;
/** /**
* @author Arjen Poutsma * @author Arjen Poutsma
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 6.1
*/ */
class ReactorNettyClientHttpRequestFactoryTests extends AbstractHttpRequestFactoryTests { class ReactorNettyClientRequestFactoryTests extends AbstractHttpRequestFactoryTests {
@Override @Override
protected ClientHttpRequestFactory createRequestFactory() { protected ClientHttpRequestFactory createRequestFactory() {