类库的使用是小菜一碟,但让系统使用正确的类库却远非易事。
Using libraries is easy but getting all the right ones onto your system can be a pain.
其中最有用的一个就是privateaccessor类,它把对private方法的测试变成小菜一碟,无论选择的测试框架是什么。
One of the most useful of these is the PrivateAccessor class, which makes testing private methods a snap regardless of your testing framework of choice.
应用推荐