title: playframework 2.2 functional test
body: <p>I updated playframework(Java version) to version 2.2. There were some major changes to way the webservice is called. In the versions before 2.2 they were called like this:</p>
  
  <pre><code>@Test
  public void testInServer() {
  running(testServer(3333), new Runnable() {
    public void run() {
       assertThat(
         WS.url("http://localhost:3333").get().get().getStatus()
       ).isEqualTo(OK);
    }
  });
  }
  </code></pre>
  
  <p>With the changes in the new version the get() method to access the result is deprecated. I think the new function call indicates a timeout. Is this the right way to get access? Is there an other way to write the functional test? How long should the timeout should be?</p>
  
  <p>Thanks for your answer.</p>