JMock website screenshot

JMock

JMock is a library that supports test-driven development of Java code with mock objects. It provides an expressive API for defining expectations and mock behavior in unit tests, integrating with popular testing frameworks including JUnit. The most recent stable release is jMock 2.13.1.

1 APIs 0 Features
JavaMock ObjectsMockingTDDTestingUnit Testing

APIs

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 seamles...

Pricing Plans

Jmock Plans Pricing

3 plans

PLANS

Rate Limits

Jmock Rate Limits

5 limits

RATE LIMITS

FinOps

Jmock Finops

FINOPS

Resources

🔗
Website
Website
🔗
Documentation
Documentation
👥
GitHubOrganization
GitHubOrganization
🔗
Issues
Issues

Sources

apis.yml Raw ↑
aid: jmock
name: JMock
description: JMock is a library that supports test-driven development of Java code with mock objects. It provides an expressive
  API for defining expectations and mock behavior in unit tests, integrating with popular testing frameworks including JUnit.
  The most recent stable release is jMock 2.13.1.
type: Index
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/apis-json-logo.jpg
tags:
- Java
- Mock Objects
- Mocking
- TDD
- Testing
- Unit Testing
humanURL: http://www.jmock.org/
url: https://raw.githubusercontent.com/api-evangelist/jmock/refs/heads/main/apis.yml
created: '2024-01-01'
modified: '2026-04-28'
specificationVersion: '0.19'
apis:
- aid: jmock:jmock-core-api
  name: JMock Core API
  description: 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.
  humanURL: http://www.jmock.org/
  tags:
  - Java
  - Mocking
  - Testing
  properties:
  - type: Documentation
    url: http://www.jmock.org/documentation.html
  - type: GettingStarted
    url: http://www.jmock.org/getting-started.html
  - type: Cookbook
    url: http://www.jmock.org/cookbook.html
  - type: Cheat Sheet
    url: http://www.jmock.org/cheat-sheet.html
  - type: JavaDoc
    url: http://www.jmock.org/javadoc/2.12.0/
  - type: GitHubRepository
    url: https://github.com/jmock-developers/jmock-library
  - type: Maven Central
    url: https://mvnrepository.com/artifact/org.jmock/jmock
common:
- type: Website
  url: http://www.jmock.org/
- type: Documentation
  url: http://www.jmock.org/documentation.html
- type: GitHubOrganization
  url: https://github.com/jmock-developers
- type: Issues
  url: https://github.com/jmock-developers/jmock-library/issues
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com