Let's say that I have a Person class and I want to test it using Mockito. This class will mostly have getters and setters, is there any way to test them without having an interface that is implemented by my class? If its possible, can I have an example? In most of the examples I've seen so far you need a "Service" interface that will mock the Person object (in my case). Sorry for the dumb question but I'm still trying to understand how Mockito works.
Aucun commentaire:
Enregistrer un commentaire