Top Mocking Libraries for Java

mockito-core 4.5.1

mockito-core · Mockito mock objects library core API and implementation

22k usages
12k stars

WireMock · A web service test double for all occasions - standalone edition

Apr 29, 2022
90 usages
4.8k stars
wiremock-jre8 2.33.2

WireMock · A web service test double for all occasions

Apr 29, 2022
398 usages
4.8k stars
wiremock 2.27.2

WireMock · A web service test double for all occasions

Sep 10, 2020
1.1k usages
4.8k stars

WireMock · A web service test double for all occasions

Sep 10, 2020
290 usages
4.8k stars
moco-core 1.3.0

moco-core · Moco is an easy setup stub framework, mainly focusing on testing and integration.

Jan 01, 2022
24 usages
3.8k stars

powermock-api · The mocking framework-specific interfaces to PowerMock.

Nov 04, 2016
2 usages
3.7k stars

PowerMock · PowerMock support module for JUnit 4.x.

Nov 01, 2020
3.3k usages
3.7k stars

PowerMock · Various utilities for accessing internals of a class.

Nov 01, 2020
511 usages
3.7k stars
mockserver 5.13.2

MockServer · A simple server to support mocking responses from any server / service that uses HTTP. The expectations that configure how the MockServer will respond and to incoming requests can be setup using any language that can create JSON. In simple client is provided to make this easy in Java.

2 usages
3k stars
jmockit 1.49

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 & 5) and TestNG test runners are supported. It also contains an advanced code coverage tool.

Dec 29, 2019
836 usages
418 stars

MockServer & Proxy Netty

357 usages