TestableMock v0.4.4 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 in order to bypass 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 of unit testing, then it is a wise to use TestableMock. s Choice.

update content

Eliminated two bugs

  • Fix the bug that the parameter type contains the private method of the interface cannot be accessed (issue-15)
  • Fix the bug that Mock static method with no parameters will make mistakes (issue-16)

Document address

Github document address
Gitee document mirroring (fast speed, content is delayed for about a day)
 

Guess you like

Origin www.oschina.net/news/124360/testablemock-0-4-4-released