Skip to content

Commit 2a57096

Browse files
author
Stephane Landelle
committed
Drop useless broken test
1 parent 92023da commit 2a57096

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

api/src/test/java/org/asynchttpclient/async/AsyncStreamHandlerTest.java

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -327,47 +327,6 @@ public String onCompleted() throws Exception {
327327
}
328328
}
329329

330-
@Test(groups = { "online", "default_provider" })
331-
public void asyncStream302WithBody() throws Exception {
332-
AsyncHttpClient c = getAsyncHttpClient(null);
333-
final AtomicReference<Integer> statusCode = new AtomicReference<Integer>(0);
334-
final AtomicReference<FluentCaseInsensitiveStringsMap> headers = new AtomicReference<FluentCaseInsensitiveStringsMap>();
335-
try {
336-
Future<String> f = c.prepareGet("http://google.com/").execute(new AsyncHandlerAdapter() {
337-
338-
public STATE onStatusReceived(HttpResponseStatus status) throws Exception {
339-
statusCode.set(status.getStatusCode());
340-
return STATE.CONTINUE;
341-
}
342-
343-
@Override
344-
public STATE onHeadersReceived(HttpResponseHeaders content) throws Exception {
345-
headers.set(content.getHeaders());
346-
return STATE.CONTINUE;
347-
}
348-
349-
@Override
350-
public STATE onBodyPartReceived(HttpResponseBodyPart content) throws Exception {
351-
return STATE.CONTINUE;
352-
}
353-
354-
@Override
355-
public String onCompleted() throws Exception {
356-
return null;
357-
}
358-
});
359-
360-
f.get(20, TimeUnit.SECONDS);
361-
assertEquals(statusCode.get().intValue(), 302);
362-
FluentCaseInsensitiveStringsMap h = headers.get();
363-
assertNotNull(h);
364-
assertEquals(h.getJoinedValue("content-type", ", ").toLowerCase(Locale.ENGLISH), TEXT_HTML_CONTENT_TYPE_WITH_UTF_8_CHARSET.toLowerCase(Locale.ENGLISH));
365-
366-
} finally {
367-
c.close();
368-
}
369-
}
370-
371330
@Test(groups = { "online", "default_provider" })
372331
public void asyncStream302RedirectWithBody() throws Exception {
373332
AsyncHttpClient c = getAsyncHttpClient(new AsyncHttpClientConfig.Builder().setFollowRedirect(true).build());

0 commit comments

Comments
 (0)