Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
s4nchez committed Sep 25, 2017
1 parent a3de43a commit b37e72b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/test/java/org/http4k/java/Http4kJavaCompatibilityTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ public void routing() {
route("/anymethod", handler)
);

assertThat(app.invoke(request(GET, Uri.of("/test"))).getStatus(), equalTo(OK));
assertThat(app.invoke(request(GET, Uri.of("/foo/bar"))).getStatus(), equalTo(OK));
assertThat(app.invoke(request(PUT, Uri.of("/anymethod"))).getStatus(), equalTo(OK));
assertThat(app.invoke(request(GET, Uri.of("/other"))).getStatus(), equalTo(NOT_FOUND));
assertThat(app.invoke(request(GET, Uri.of("/foo/other"))).getStatus(), equalTo(NOT_FOUND));
assertThat(app.invoke(request(GET, "/test")).getStatus(), equalTo(OK));
assertThat(app.invoke(request(GET, "/foo/bar")).getStatus(), equalTo(OK));
assertThat(app.invoke(request(PUT, "/anymethod")).getStatus(), equalTo(OK));
assertThat(app.invoke(request(GET, "/other")).getStatus(), equalTo(NOT_FOUND));
assertThat(app.invoke(request(GET, "/foo/other")).getStatus(), equalTo(NOT_FOUND));
}
}

Expand All @@ -71,6 +71,10 @@ class RequestFactory {
static Request request(Method method, Uri uri) {
return Request.Companion.invoke(method, uri);
}

static Request request(Method method, String uri) {
return Request.Companion.invoke(method, uri);
}
}

class ResponseFactory {
Expand Down

0 comments on commit b37e72b

Please sign in to comment.