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.

JMock publishes 1 API on the APIs.io network. Tagged areas include Java, Mock Objects, Mocking, TDD, and Testing.

JMock’s developer surface includes documentation and 4 more developer resources.

20.4/100 emerging ▬ flat Agent 3/100 human only Full breakdown ↓
scored 2026-08-05 · rubric v0.9.1
AccessFreemium
1 APIs
JavaMock ObjectsMockingTDDTestingUnit Testing

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-08-05 · rubric v0.9.1
Composite quality — 20.4/100 · emerging
Contract Quality 0.0 / 25
Developer Ergonomics 1.7 / 20
Commercial Clarity 7.9 / 20
Operational Transparency 4.8 / 13
Governance 0.0 / 12
Discoverability 5.9 / 10
Agent readiness — 3/100 · human only
Machine-Readable Contract 0 / 18
Agentic Access Contract 0 / 10
MCP Server 0 / 12
Machine-Readable Auth 0 / 10
Idempotency 0 / 9
Stable Error Semantics 0 / 8
Request/Response Examples 0 / 7
Rate-Limit Signaling 7 / 7
Typed Event Surface 0 / 6
Agent Skills 0 / 5
Well-Known Catalog 0 / 4
Consent & Bot Identity 0 / 3
A2A Agent Card 0 / 8
Dry-Run / Simulate Mode 0 / 4
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. This rating is computed from github.com/api-evangelist/jmock: open an issue to ask a question, or submit a pull request to add artifacts. Want it done for you? Prioritized profiling — $2,500 →

APIs 1

Individual APIs this provider publishes, each with its own machine-readable definition.

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 1

Published pricing tiers and plan structures.

Jmock Plans Pricing

3 plans

PLANS

Rate Limits 1

Documented rate limits and quota policies.

Jmock Rate Limits

5 limits

RATE LIMITS

FinOps 1

Cost, billing, and metering signals for API financial operations.

Jmock Finops

FINOPS

Security Posture 1

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Jmock Domain Security

TLSv1.3

SECURITY

Resources

Documentation 1

Reference material describing how the API behaves

Build 1

SDKs, sample code, and the tooling you integrate with

Access & Security 1

Authentication, authorization, and security posture

Operate 1

Status, limits, changes, and where to get help

Company 1

The organization behind the API

Source (apis.yml)

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
accessModel:
  pricing: freemium
  onboarding: unknown
  trial: false
  try_now: false
  public: false
  label: Freemium
  confidence: medium
  source:
  - plans
  generated: '2026-07-22'
  method: derived
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/icons/jmock.png
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: DomainSecurity
  url: security/jmock-domain-security.yml
- 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