参见英文答案 > How do I test a private function or a class that has private methods, fields or inner classes?????????????????????????????????????49个
JUnit只会在我的类中测试那些公开的方法.如何对非(即私有,受保护)的进行junit测试?
JUnit只会在我的类中测试那些公开的方法.如何对非(即私有,受保护)的进行junit测试?
我可以通过不使用junit来测试它们,但我想知道junit标准方法是什么.