@Test public void testGetSync() throws Exception { FutureWithTrigger futureWithTrigger = new FutureWithTrigger(); Object test = new Object(); Triggerer.triggerValue(test, futureWithTrigger); Object result = futureWithTrigger.getFuture().await(); assertEquals(test, result); }
public Future<T> getFuture(){ return this.future; }
FutureWithTrigger { public Future<T> getFuture(){ return this.future; } }
FutureWithTrigger { public Future<T> getFuture(){ return this.future; } FutureWithTrigger(); }
FutureWithTrigger { public Future<T> getFuture(){ return this.future; } FutureWithTrigger(); Callback<T> getTrigger(); Future<T> getFuture(); }
FutureWithTrigger { public Future<T> getFuture(){ return this.future; } FutureWithTrigger(); Callback<T> getTrigger(); Future<T> getFuture();  }