Socket
Book a DemoInstallSign in
Socket

com.github.hazendaz.jmockit:jmockit

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.hazendaz.jmockit:jmockit

JMockit is a Java toolkit for automated developer testing. It contains APIs for the creation of the objects to be tested, for mocking dependencies, and for faking external APIs; JUnit (4 and 5) and TestNG test runners are supported. It also contains an advanced code coverage tool.

Source
mavenMaven
Version
1.56.0
Version published
Maintainers
1
Source

Jmockit 1

Java CI Coverage Status Maven central MIT

hazendaz

Codebase for JMockit 1.x releases - Documentation - Historical Release notes

All releases under 'hazendaz' since 1.49 are located in github releases

How to build the project:

  • use JDK 11 or newer
  • use Maven 3.9.6 or newer; the following are the top-level modules:
    • main/pom.xml: builds jmockit-1.n.jar, running JUnit 4/5 and TestNG test suites
    • coverageTests/pom.xml: runs JUnit 5 tests for the coverage tool
    • samples/pom.xml: various sample test suites (tutorial, LoginService, java8testing) using JUnit 5 or TestNG 7
    • samples/petclinic/pom.xml: integration testing example using Java EE 8

This fork contains pull requests from main repo as well as updated libraries within build.

  • 665 from fork vimil condy arrayindexoutofboundsexception fix
  • 695 from fork don-vip Fix NPE when className is null
  • 697 from fork Saljack Fix Tested fullyInitialized instance with interfaces in constructor
  • 712 from fork Saljack Add method name check for generic methods Expectations
  • 734 from fork tsmock Mocks created by JUnit4 tests are not cleaned up when run with JUnit5
  • 736 from fork Col-E Add suport for Java 11+ based off this repo
  • 68 from fork Col-E after sync up from PR 736.

This fork is the new home for jmockit continuation. All pull requests are welcome including anyone that wants to bring back support that was deleted from original making upgrades difficult.

Considerations

  • Testing confirmed to work from jdk 11 through jdk 25
  • New launcher pom in root to build entire project and entire project with demos are distributed to maven central now.

Releasing

  • Maven 'site' release currently does not handle well on multi module builds and therefore is not being released the the current time. This is being worked on. In meantime use the original site which is still available.

FAQs

Package last updated on 26 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts