Mokksy Server Java
Wraps an existing MokksyServer instance.
Creates a MokksyServerJava backed by a new MokksyServer.
The server is not started automatically; call start before registering stubs or making requests.
Example:
// Random port (default) — suitable for parallel test runs:
MokksyServerJava mokksy = new MokksyServerJava();
// Fixed port with verbose logging:
MokksyServerJava mokksy = new MokksyServerJava(8080, "127.0.0.1", true);Content copied to clipboard
Parameters
port
Port to bind to. Defaults to 0 (OS-assigned ephemeral port). Use a fixed value only when the port must be predictable; prefer 0 to avoid conflicts in parallel test runs.
host
Network interface to bind to. Defaults to "127.0.0.1" (loopback only).
verbose
When true, enables DEBUG-level request/response logging via the configured MokksyServer logger. Defaults to false.