|
12 | 12 | */
|
13 | 13 | package com.ning.http.client.async;
|
14 | 14 |
|
15 |
| -import static org.testng.Assert.assertEquals; |
16 |
| -import static org.testng.Assert.assertNotNull; |
| 15 | +import com.ning.http.client.AsyncHttpClient; |
| 16 | +import com.ning.http.client.AsyncHttpClientConfig; |
| 17 | +import com.ning.http.client.BodyDeferringAsyncHandler; |
| 18 | +import com.ning.http.client.BodyDeferringAsyncHandler.BodyDeferringInputStream; |
| 19 | +import com.ning.http.client.Response; |
| 20 | +import org.eclipse.jetty.server.Request; |
| 21 | +import org.eclipse.jetty.server.handler.AbstractHandler; |
| 22 | +import org.testng.Assert; |
| 23 | +import org.testng.annotations.Test; |
17 | 24 |
|
| 25 | +import javax.servlet.ServletException; |
| 26 | +import javax.servlet.http.HttpServletRequest; |
| 27 | +import javax.servlet.http.HttpServletResponse; |
18 | 28 | import java.io.IOException;
|
19 | 29 | import java.io.InputStream;
|
20 | 30 | import java.io.OutputStream;
|
|
24 | 34 | import java.util.concurrent.Future;
|
25 | 35 | import java.util.concurrent.TimeoutException;
|
26 | 36 |
|
27 |
| -import javax.servlet.ServletException; |
28 |
| -import javax.servlet.http.HttpServletRequest; |
29 |
| -import javax.servlet.http.HttpServletResponse; |
30 |
| - |
31 |
| -import org.eclipse.jetty.server.Request; |
32 |
| -import org.eclipse.jetty.server.handler.AbstractHandler; |
33 |
| -import org.testng.Assert; |
34 |
| -import org.testng.annotations.Test; |
35 |
| - |
36 |
| -import com.ning.http.client.AsyncHttpClient; |
37 |
| -import com.ning.http.client.AsyncHttpClientConfig; |
38 |
| -import com.ning.http.client.BodyDeferringAsyncHandler; |
39 |
| -import com.ning.http.client.BodyDeferringAsyncHandler.BodyDeferringInputStream; |
40 |
| -import com.ning.http.client.Response; |
| 37 | +import static org.testng.Assert.assertEquals; |
| 38 | +import static org.testng.Assert.assertNotNull; |
41 | 39 |
|
42 | 40 | public abstract class BodyDeferringAsyncHandlerTest extends AbstractBasicTest {
|
43 | 41 |
|
@@ -157,7 +155,7 @@ public void deferredSimple() throws IOException, ExecutionException,
|
157 | 155 | client.close();
|
158 | 156 | }
|
159 | 157 |
|
160 |
| - @Test(groups = { "standalone", "default_provider" }, enabled = true) |
| 158 | + @Test(groups = { "standalone", "default_provider" }, enabled = false) |
161 | 159 | public void deferredSimpleWithFailure() throws IOException,
|
162 | 160 | ExecutionException, TimeoutException, InterruptedException {
|
163 | 161 | AsyncHttpClient client = getAsyncHttpClient(getAsyncHttpClientConfig());
|
|
0 commit comments