assertEquals(1, value);
}
@Test(timeout = 2000)
public void returnsResultAfterSupplier() throws Exception {
new Asynch(fakeRepository).perform();
int value = await().until(new Callable<Integer>() {
public Integer call() throws Exception {
return fakeRepository.getValue();
}
}, greaterThan(0));