mock_dispatch_with_request


Description:

public static TestResponse mock_dispatch_with_request (Application app, Request mock_request, HashMap<string,string>? config_override = null)

Perform a mock request against a given request. Runs through the dispatcher without launching the full application.

Parameters:

app Instance of the application to test.
mock_request Optionally provide a mock Request object if headers need to be manipulated, or other request customizations are needed.
config_override Optionally provide a HashMap containing config overrides for this request.