MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/htnpay/i_also_need_help/fyjlleh/
r/ProgrammerHumor • u/Eilon009 • Jul 18 '20
224 comments sorted by
View all comments
Show parent comment
2
Ever heard of Mockito? It makes it as easy as it can be.
1 u/utdconsq Jul 19 '20 Yup, use it daily, but if things aren't written in a way suitable for mocking, you're out of luck. I've inherited some stuff that had no tests and adding them after the fact has been a challenge. 1 u/Ereaser Jul 19 '20 Ah yeah, that's especially the case for statics.PowerMock can do that I believe, but I've never used it.
1
Yup, use it daily, but if things aren't written in a way suitable for mocking, you're out of luck. I've inherited some stuff that had no tests and adding them after the fact has been a challenge.
1 u/Ereaser Jul 19 '20 Ah yeah, that's especially the case for statics.PowerMock can do that I believe, but I've never used it.
Ah yeah, that's especially the case for statics.
PowerMock can do that I believe, but I've never used it.
View all comments
Show parent comment
2
u/Ereaser Jul 19 '20
Ever heard of Mockito? It makes it as easy as it can be.