提交 e3b839eb 编写于 作者: J Jake Wharton

Remove duplicated test.

It is the same as  in this file.
上级 e52a4d74
......@@ -1435,21 +1435,6 @@ public final class RequestBuilderTest {
assertBody(request.body(), "");
}
@Test public void bodyResponseBody() {
class Example {
@POST("/foo/bar/") //
Call<ResponseBody> method(@Body RequestBody body) {
return null;
}
}
RequestBody body = RequestBody.create(TEXT_PLAIN, "hi");
Request request = buildRequest(Example.class, body);
assertThat(request.method()).isEqualTo("POST");
assertThat(request.headers().size()).isZero();
assertThat(request.url().toString()).isEqualTo("http://example.com/foo/bar/");
assertBody(request.body(), "hi");
}
@Test public void bodyRequired() {
class Example {
@POST("/foo/bar/") //
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册