TestableMock v0.4.5 released, the unit test enhancement tool of Alibaba Performance Team

TestableMock is a lightweight & easy-to-use Java unit testing enhancement tool that provides three targeted auxiliary capabilities:

  • Access to private members of the tested class: Solve the problems of private member initialization and private method testing of the tested class
  • Quick Mock arbitrary call: Solve the cumbersome use of traditional Mock tools
  • Auxiliary test void method: solve the problem of no return value method is difficult to implement unit testing

If you are tired of the lengthy mock code written to circumvent an external call, if you have long disliked that Mockito is not enough and PowerMock is too bloated, if you happen to also hate the various rules and regulations of unit testing, then it is wise to use TestableMock s Choice.

update content

This version contains a fix for a null pointer exception that is easier to trigger. Users of older versions are recommended to upgrade as soon as possible

  • Fix IntelliJ 2020.3+ private member access compilation time error
  • Fix a latent cross-use case initialization null pointer exception (issue-20)
  • Support Dump the modified bytecode during runtime to a local file for viewing

Document address

Guess you like

Origin www.oschina.net/news/124778/testablemock-0-4-5-released
Recommended