Skip to content

Commit

Permalink
Add basic test for connect timeout option being passed down by the bu…
Browse files Browse the repository at this point in the history
…ilder
  • Loading branch information
rchodava committed Mar 23, 2016
1 parent d3d22c6 commit 68c0720
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -18,6 +18,7 @@ public class RequestBuilderImplTest {
@Test
public void requestBuilding() {
Request request = new RequestBuilderImpl()
.connectTimeout(500)
.header(RequestHeader.ACCEPT, "application/json")
.header("Content-Type", "application/json")
.method(Method.GET)
Expand All @@ -28,6 +29,7 @@ public void requestBuilding() {
assertEquals("application/json", request.header(RequestHeader.CONTENT_TYPE).get().asString());
assertEquals(Method.GET, request.method());
assertEquals("http://sample.com", request.uri());
assertEquals(500, request.options().get(Request.OPTION_CONNECT_TIMEOUT));
}

@Test
Expand Down

0 comments on commit 68c0720

Please sign in to comment.