I can't use a DI container, so i am stuck with using a factory. should i use a package level setter or a public setter or a package level field? As common as factories are, I haven't found the most accepted answer to this problem. During unit testing, i want to be able to mock out this factory.
Thanks!
Aucun commentaire:
Enregistrer un commentaire