Skip to content

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

License

Notifications You must be signed in to change notification settings

SemanticaSoftware/unit-testing-pocketknife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages