News for hackers. Stuff that matters.
Re:Zen and the Art of Unit Testing by galephico on Wednesday March 15, 2017 @08:43AM (#13875667)
how would you call UserServiceImpl? Underlying question, how would you organize your CRUD (with business logic) operations?
Re:Zen and the Art of Unit Testing by royjacobs on Wednesday March 15, 2017 @11:19AM (#13876691)
I think I would reverse the question. Why does there have to be a UserService interface? If it only exists in order to be mocked in yet another place of the code you've added even more unnecessary layering in your codebase.