Remove parameterisation from ClientRequest

This commit removes the parameterisation from ClientRequest, similarly
to ServerResponse. Dropping the parameterisation facilitates a
ClientRequest.from method that also copies the body of the target
request.

SPR-15234 Work in Progress
This commit is contained in:
Arjen Poutsma
2017-02-10 11:46:38 +01:00
parent d513fe87f2
commit 45770d73ed
12 changed files with 73 additions and 67 deletions

View File

@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.test.web.reactive.server;
import java.net.URI;
@@ -54,7 +55,7 @@ public class WiretapConnectorTests {
wiretapConnector.addListener(infoRef::set);
ExchangeFunction exchangeFn = ExchangeFunctions.create(wiretapConnector);
ClientRequest<Void> clientRequest = ClientRequest.method(HttpMethod.GET, URI.create("/test")).build();
ClientRequest clientRequest = ClientRequest.method(HttpMethod.GET, URI.create("/test")).build();
exchangeFn.exchange(clientRequest).blockMillis(0);
WiretapConnector.Info info = infoRef.get();