Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
galephico
on March 15, 2017
|
parent
|
context
|
favorite
| on:
Zen and the Art of Unit Testing
how would you call UserServiceImpl? Underlying question, how would you organize your CRUD (with business logic) operations?
sagacity
on March 15, 2017
[–]
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.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: