The open-source project MockServer NeoLight has been released as a lightweight rewrite of the original MockServer. Its primary focus lies on simplicity, maintainability, and seamless integration with Testcontainers.
The MockServer concept allows developers to mock HTTP and HTTPS requests in order to simulate APIs for testing purposes. By setting expectations for incoming requests and defining responses, it creates controlled environments for integration testing. This isolates the system under test from real external dependencies, leading to predictable and repeatable results.
After the original MockServer project became inactive, several alternatives were evaluated (see the comparison of similar frameworks). Based on these evaluations, the project was forked and further developed as NeoLight.
Key Improvements
While the core design principles of the original are preserved, several enhancements have been introduced:
- Native Testcontainers support through a dedicated module
- Streamlined codebase by removing non-essential components and dependencies, reducing the library size by a factor of six
- Separation of the codebase into distinct server and client modules
- Various performance optimizations
- ARM compatibility for Docker containers
- Updated dependencies to address security vulnerabilities
More information and the full source code are available on GitHub:
MockServer NeoLight Repository