re: It’s Okay to Test Private Methods VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hmm, why not refactor the class then? If it’s untested legacy code, it is legitimate to test private methods and use things like PowerMock to mock ...

I am actually 100% on board with working toward eliminating private method tests and whatnot. That said, I guess I’m just critical of rules that we tend to blindly follow as a community.

code of conduct - report abuse