Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 1.14 KB

README.md

File metadata and controls

12 lines (10 loc) · 1.14 KB

unit-testing-pocketknife

A small and sharp toolset for unit testing and mocking dependencies in Java

This library was written to facilate mock call verification on self made mock objects. It tries to provide its users with a lightweight, intuitive, clear-cut and transparent api. It only uses some magic (byte code generation) to facilitate capturing method calls for mock verification. Features as the use of Hamcrest Matchers, Predicates and strict verification for method invocation are supported. This library especially facilitates making more complicated mocks as the mock logic is to be defined in an object-oriented way in the mock class itself. *Also, for simple mock objects, it provides a clean-cut api (coming soon).*

In the near future, an examples project will be linked where the api is illustrated and some mocking templates are provided.

This library is very much in-development at this moment and it is therefore not recommended to use it to test production code.