Skip to content

Commit c14a962

Browse files
author
Stephane Landelle
committed
As of AsyncHttpClient#292, GET request can have a body
1 parent d8b32a4 commit c14a962

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/test/java/com/ning/http/client/async/AsyncProvidersBasicTest.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,18 +1650,6 @@ public void onThrowable(Throwable t) {
16501650
}
16511651
}
16521652

1653-
@Test(groups = { "standalone", "default_provider" }, expectedExceptions = IllegalArgumentException.class)
1654-
public void getShouldNotAllowBody() throws IllegalArgumentException, IOException {
1655-
AsyncHttpClient client = getAsyncHttpClient(null);
1656-
try {
1657-
AsyncHttpClient.BoundRequestBuilder builder = client.prepareGet(getTargetUrl());
1658-
builder.setBody("Boo!");
1659-
builder.execute();
1660-
} finally {
1661-
client.close();
1662-
}
1663-
}
1664-
16651653
@Test(groups = { "standalone", "default_provider" }, expectedExceptions = IllegalArgumentException.class)
16661654
public void headShouldNotAllowBody() throws IllegalArgumentException, IOException {
16671655
AsyncHttpClient client = getAsyncHttpClient(null);

0 commit comments

Comments
 (0)