heat
8/9/2015 - 8:35 PM

calling a web

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));
    }
}