@Test public void testAsync() throws Exception { AsyncResult async = new AsyncResult(new Callable<Result>() { @Override public Result call() throws Exception { return Results.ok(); } }); assertThat(async.callable()).isNotNull(); assertThat(async.callable().call().getStatusCode()).isEqualTo(200); }
public Callable<Result> callable() { return callable; }
AsyncResult extends Result { public Callable<Result> callable() { return callable; } }
AsyncResult extends Result { public Callable<Result> callable() { return callable; } AsyncResult(Callable<Result> callable); }
AsyncResult extends Result { public Callable<Result> callable() { return callable; } AsyncResult(Callable<Result> callable); Callable<Result> callable(); }
AsyncResult extends Result { public Callable<Result> callable() { return callable; } AsyncResult(Callable<Result> callable); Callable<Result> callable();  }