JMock Core API
Core library for creating mock objects and defining expectations in Java tests using an expressive DSL. Supports JUnit 4 and JUnit 5, modern JDK versions, and integrates seamlessly with IDE refactoring and autocompletion tools.
Documentation
Documentation
http://www.jmock.org/documentation.html
GettingStarted
http://www.jmock.org/getting-started.html