start
Starts the server and blocks the calling thread until the port is bound and the server is ready to accept requests.
Call this method once before registering stubs or issuing test requests, typically in a @BeforeAll (JUnit 5) or @Before (JUnit 4) setup method.
Example:
@BeforeAll
void setUp() {
mokksy.start();
}Content copied to clipboard