首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 工具在java测试私有方法和使用设计模式

工具在java测试私有方法和使用设计模式

资 源 简 介

dp4j.jar in your project classpath lets you access from your tests private methods as if they were public! It also helps you implement Design Patterns such as the Singleton Pattern. No changes are made to the source code when testing private methods, rather dp4j injects the Reflection API required to access the method in your body of your test method at compile-time.
VIP VIP
0.172667s