Skip navigation links
JMockit Home

JMockit - API Documentation

JMockit is a Java toolkit for automated developer testing.

See: Description

Packages 
Package Description
mockit
Provides the classes and annotations used when writing tests with the JMockit mocking and faking APIs.
mockit.integration.junit4
Provides integration with JUnit 4.x test runners, for version 4.5 or newer.

JMockit is a Java toolkit for automated developer testing. The figure below provides an overview of the available mocking APIs. Clicking on individual items will navigate to the corresponding API documentation or Tutorial pages.


Figure 1. Overview of JMockit APIs

For a quick introduction to JMockit, go to the Getting Started page. For the motivations that led to the creation of the toolkit, see the About JMockit page.

The JMockit Tutorial contains an extensive description of the available tools and APIs, with plenty of example code.

The full distribution (in a zip file) contains several sample test suites written with the mocking APIs. There are individual test suites for comparison with other popular mocking tools, containing the JMockit versions of official example tests found on the Web for each other tool.

Questions and feedback should be posted on the JMockit Users discussion group.

Bug reports, feature/enhancement requests and other issues should be posted on the Issue Tracker. Source code contributions can be submitted as regular GitHub pull requests from a forked repository.

Skip navigation links
JMockit Home