vertx-unit icon indicating copy to clipboard operation
vertx-unit copied to clipboard

Ability to control the time

Open junglie85 opened this issue 6 years ago • 2 comments

I really like the RxJava TestScheduler and the ability to control the time, rather than having to wait for however long it takes for events to actually be emitted in real-time. Is something like this possible in vertx-unit?

junglie85 avatar Jul 16 '17 06:07 junglie85

I doubt this is feasible as the timing operations are based on Netty on some may be related on networking for which you cannot control timers

vietj avatar Jul 16 '17 10:07 vietj

That's fair enough, I was just being curious. It's a shame that there's not any way to isolate those external dependencies for unit testing though.

junglie85 avatar Jul 16 '17 14:07 junglie85