mock_dispatch


Description:

public static TestResponse mock_dispatch (Application app, HttpMethod method, string path, HashMap<string,string>? config_override = null)

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

Parameters:

app Instance of the application to test.
method HttpMethod for the request
path URI path to request
config_override Optionally provide a HashMap containing config overrides for this request.