File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
spring-test/src/main/java/org/springframework/mock/http/client Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2012 the original author or authors.
2+ * Copyright 2002-2014 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1616
1717package org .springframework .mock .http .client ;
1818
19- import org .springframework .core .task .AsyncListenableTaskExecutor ;
19+ import java .io .IOException ;
20+ import java .net .URI ;
21+
2022import org .springframework .http .HttpMethod ;
2123import org .springframework .http .client .AsyncClientHttpRequest ;
22- import org .springframework .http .client .ClientHttpRequest ;
2324import org .springframework .http .client .ClientHttpResponse ;
24- import org .springframework .mock .http .MockHttpOutputMessage ;
2525import org .springframework .util .concurrent .ListenableFuture ;
2626import org .springframework .util .concurrent .SettableListenableFuture ;
2727
28- import java .io .IOException ;
29- import java .net .URI ;
30- import java .util .concurrent .Callable ;
31-
3228/**
3329 * An extension of {@link MockClientHttpRequest} that also implements
34- * {@link AsyncClientHttpRequest} by wraps the response in a "settable" future.
30+ * {@link AsyncClientHttpRequest} by wrapping the response in a
31+ * {@link SettableListenableFuture}.
3532 *
3633 * @author Rossen Stoyanchev
3734 * @author Sam Brannen
38- * @since 3.2
35+ * @since 4.1
3936 */
4037public class MockAsyncClientHttpRequest extends MockClientHttpRequest implements AsyncClientHttpRequest {
4138
You can’t perform that action at this time.
0 commit comments