How to create a dummy instance of org.springframework.util.concurrent.ListenableFuture?
It should represents a completed task with a given result.
Assuming String result, you can use following:
String result = "result";
ListenableFuture<String> future = new AsyncResult<>(result);
String dummy = future.get();
However, if you need, any object can be wrapped in AsyncResult.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With