vendredi 27 novembre 2015

OCMockito: verify that a method of a mock is called sometime in the future

First I mock an object. Then I do something that should make the object's certain method be called. The call is asynchronous.

So what I'd like to verify is: in at most 5 seconds, this method of the mock object should be called.

Any idea?

Aucun commentaire:

Enregistrer un commentaire