Skip to content

Commit

Permalink
Migrating from RequestBuilder to Request.Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbodart committed Oct 30, 2015
1 parent 7a97bb9 commit 0f29d2b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import org.junit.Test;

import static com.googlecode.utterlyidle.Entity.empty;
import static com.googlecode.utterlyidle.Request.Builder.get;
import static com.googlecode.utterlyidle.Request.Builder.head;
import static com.googlecode.utterlyidle.ResponseBuilder.response;
import static com.googlecode.utterlyidle.Status.NOT_FOUND;
import static com.googlecode.utterlyidle.Status.OK;
Expand All @@ -21,8 +23,8 @@ public class HeadRequestHandlerTest {
public static final String TARGET = "whatever";
public static final Status NOT_SUCCESSFUL_STATUS = NOT_FOUND;

Request HEAD_REQUEST = new RequestBuilder(HEAD, TARGET).build();
Request NOT_HEAD_REQUEST = new RequestBuilder(GET, TARGET).build();
Request HEAD_REQUEST = head(TARGET);
Request NOT_HEAD_REQUEST = get(TARGET);
private RecordingHttpHandler httpHandler;


Expand Down

0 comments on commit 0f29d2b

Please sign in to comment.