Skip to content

Instantly share code, notes, and snippets.

@heat
Created August 9, 2015 20:35
Show Gist options
  • Save heat/5e79e5d7dc946581ec8b to your computer and use it in GitHub Desktop.
Save heat/5e79e5d7dc946581ec8b to your computer and use it in GitHub Desktop.
calling a web
public class IntegrationTest extends WithApplication {
// ...
@Test
public void testRequest() {
Promise<WSResponse> promise = WS.url("http://www.google.com").get();
assertThat(
promise.get(1000).getStatus(), equalTo(OK));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment