Skip to content

Commit 49e960c

Browse files
committed
Polish doc & imports for MockAsyncClientHttpRequest
Issue: SPR-11822
1 parent f8b6114 commit 49e960c

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

spring-test/src/main/java/org/springframework/mock/http/client/MockAsyncClientHttpRequest.java

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.
@@ -16,26 +16,23 @@
1616

1717
package org.springframework.mock.http.client;
1818

19-
import org.springframework.core.task.AsyncListenableTaskExecutor;
19+
import java.io.IOException;
20+
import java.net.URI;
21+
2022
import org.springframework.http.HttpMethod;
2123
import org.springframework.http.client.AsyncClientHttpRequest;
22-
import org.springframework.http.client.ClientHttpRequest;
2324
import org.springframework.http.client.ClientHttpResponse;
24-
import org.springframework.mock.http.MockHttpOutputMessage;
2525
import org.springframework.util.concurrent.ListenableFuture;
2626
import 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
*/
4037
public class MockAsyncClientHttpRequest extends MockClientHttpRequest implements AsyncClientHttpRequest {
4138

0 commit comments

Comments
 (0)