What is JMockit?

This toolkit is offered as a set of resources available through the Maven Central repository. To execute tests, it requires Java version 7 or above, and these tests can be run using either JUnit or TestNG frameworks. For instructions on how to integrate the library into your Java project, consult the section dedicated to Running tests with JMockit. This guide delves into the different APIs that the library provides, featuring example tests that are built using Java 8. At its core, the primary API includes a single annotation that enables the automatic creation and configuration of the objects that are to be tested. In addition to this, there is a mocking API, commonly known as the "Expectations" API, designed specifically for tests that involve mocked dependencies. Moreover, a streamlined faking API, referred to as the "Mockups" API, is included to help create and employ fake implementations, thus reducing the resource load required by external components. Overall, this toolkit significantly improves testing efficiency by simplifying the setup process and offering flexible mocking features, making it a valuable asset for developers. With its comprehensive capabilities, it ensures that testing can be both effective and efficient.

Pricing

Price Starts At:
Free
Free Version:
Free Version available.

Integrations

Offers API?:
Yes, JMockit provides an API

Screenshots and Video

JMockit Screenshot 1

Company Facts

Company Name:
JMockit
Company Website:
jmockit.github.io

Product Details

Deployment
Windows
Mac
Linux
Training Options
Documentation Hub
Support
Web-Based Support

Product Details

Target Company Sizes
Individual
1-10
11-50
51-200
201-500
501-1000
1001-5000
5001-10000
10001+
Target Organization Types
Mid Size Business
Small Business
Enterprise
Freelance
Nonprofit
Government
Startup
Supported Languages
English

JMockit Categories and Features