Java and JVM Languages
WireMock was originally created for Java development, and there are plenty of solutions when developing applications powered by the Java Virtual Machine.
WireMock#
WireMock, also known as WireMock Java is the flagman implementation of WireMock functionality and specifications, maintained on the WireMock GitHub organization. It is included into many distributions (including WireMock Docker), test framework adapters and products. Most of the documentation on this website is about WireMock Java, unless specified explicitly.
Usage:
References:
WireMock Extensions#
WireMock Java is extensible, and there is a number of available extensions that can be included into WireMock to extend its functionality, including but not limited to request filters, observability, storage, etc.
See the list of WireMock Extensions here.
Integrations#
Integrations with test frameworks#
WireMock has integrations with many popular Java test frameworks for unit and integration testing.
- JUnit 5+ and Jupiter
- JUnit 4 and Vintage
- Testcontainers for Java
- Spock - maintained outside WireMock's organization on GitHub
By JVM language#
In addition to core Java, WireMock offers specialized integrations (e.g. DSL Bindings or test framework libraries) for the following languages: