MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/htnpay/i_also_need_help/fyjp836/
r/ProgrammerHumor • u/Eilon009 • Jul 18 '20
224 comments sorted by
View all comments
Show parent comment
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
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.