How to unit-test async coroutine? `runBlocking` fo...
# announcements
a
How to unit-test async coroutine?
runBlocking
for test doesn’t seem to work
Copy code
fun myMethod(): CompletableFuture<Data> {
  return async(CommonPool){ 
     // transformation code that needs to be tested
     transformedData
  }.asCompletableFuture()
}