I have implemented a method that executes some logic, after a certain amount of time, using a TimerTask and Timer.schedule. I want to verify this behaviour using Junit, however, I would like to know if there are better ways to test it, without using thread sleeping, or measuring time.
Thanks.
Aucun commentaire:
Enregistrer un commentaire