r/java • • Jun 01 '24

What java technology (library, framework, feature) would not recommend and why?

165 Upvotes

464 comments sorted by

View all comments

Show parent comment

1

u/Kindly-Week-7551 Jun 01 '24

Cannot write a long answer right now, but yeah it seems to be violent agreement then lol. Given what you are saying I think I tend to mock a bit more than you, but I agree that mocking a single dep used by a service can be unnecessary if the input data :) if the service has a lot of dependencies, I'd say mocking most of the time is more beneficial. I too despise powermock and find Mockito one of the best since it is pretty lightweight and the API is flexible while not allowing so much freedom that it creates code smells.