api

http4k / org.http4k.testing

Package org.http4k.testing

Useful tools for testing http4k applications.

Types

Name Summary
RecordingEvents class RecordingEvents : Events, Iterable<Event>
Simple recording events that can be used in tests
TestWsClient class TestWsClient : WsClient
A class that is used for offline testing of a routed Websocket, without starting up a Server. Calls are routed synchronously to the receiving Websocket, and error are propagated to the caller.

Exceptions

Name Summary
ClosedWebsocket data class ClosedWebsocket : Exception

Extensions for External Classes

Name Summary
kotlin.Function1  

Functions

Name Summary
testWsClient fun PolyHandler.testWsClient(request: Request): TestWsClient?