Package-level declarations
Core server, stub registration, and configuration.
Core server, stub registration, and configuration.
Types
Defines the building step for associating an inbound RequestSpecification with its corresponding response definition. This class is part of a fluent API used to define mappings between request specifications and their respective responses.
A Java-friendly wrapper around BuildingStep that exposes respondsWith and respondsWithStream as instance methods accepting Consumer instead of Kotlin suspend lambdas.
Controls which requests are recorded in the dev.mokksy.mokksy.request.RequestJournal.
A typealias for MokksyServer, allowing the use of Mokksy as an alternative, more concise name for referencing the MokksyServer class.
An embedded mock HTTP server for testing. Registers stubs for any HTTP method and verifies request expectations after the test.
Java-friendly wrapper around MokksyServer that provides a fully instance-method-based API.
Configuration for a MokksyServer instance.
Configuration for a stub's lifecycle and logging behaviour.
Functions
Java-friendly overload for BuildingStep.respondsWith.
Java-friendly overload for BuildingStep.respondsWithStream.
Stops the Mokksy server, blocking until shutdown is complete.
Stops the Mokksy server on the given dispatcher, blocking until shutdown is complete.