Class RequestResult

java.lang.Object
com.soklet.RequestResult

@ThreadSafe public final class RequestResult extends Object
Encapsulates the results of a request that would normally be handled by your Server (both logical response and bytes to be sent over the wire), used for integration testing via Simulator.performRequest(Request).

Instances can be acquired via the withMarshaledResponse(MarshaledResponse) factory method.

The Server-Sent Event equivalent of this type is ServerSentEventRequestResult, which is used for integration testing via Simulator.performServerSentEventRequest(Request).

See https://www.soklet.com/docs/testing#integration-testing for detailed documentation.

Author:
Mark Allen