JMock logo

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

Resources

🔗
Website
Website
🔗
Documentation
Documentation
👥
GitHub Organization
GitHub Organization
🔗
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-productions.s3.amazonaws.com/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: Getting Started
        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: GitHub Repository
        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: GitHub Organization
    url: https://github.com/jmock-developers
  - type: Issues
    url: https://github.com/jmock-developers/jmock-library/issues
maintainers:
  - FN: Kin Lane
    email: [email protected]