Uses of Class
io.jooby.test.MockResponse
-
Uses of MockResponse in io.jooby.test
Methods in io.jooby.test that return MockResponseModifier and TypeMethodDescriptionMockContext.getResponse()Mock response generated from route execution.MockResponse.setContentLength(long length) Set response content length.MockResponse.setContentType(MediaType contentType) Set response content type.Set response header.Set response header.MockResponse.setHeaders(Map<String, Object> headers) Set response headers.Set route response value.MockResponse.setStatusCode(StatusCode statusCode) Set response status code.Method parameters in io.jooby.test with type arguments of type MockResponseModifier and TypeMethodDescriptionMockRouter.call(String method, String path, MockContext ctx, Consumer<MockResponse> consumer) Execute a PATCH request to the target application.MockRouter.call(String method, String path, Consumer<MockResponse> consumer) Execute a PATCH request to the target application.MockRouter.delete(String path, MockContext context, Consumer<MockResponse> consumer) Execute a DELETE request to the target application.MockRouter.delete(String path, Consumer<MockResponse> consumer) Execute a DELETE request to the target application.MockRouter.get(String path, MockContext context, Consumer<MockResponse> consumer) Execute a GET request to the target application.MockRouter.get(String path, Consumer<MockResponse> consumer) Execute a GET request to the target application.MockRouter.patch(String path, MockContext context, Consumer<MockResponse> consumer) Execute a PATCH request to the target application.MockRouter.patch(String path, Consumer<MockResponse> consumer) Execute a PATCH request to the target application.MockRouter.post(String path, MockContext context, Consumer<MockResponse> consumer) Execute a POST request to the target application.MockRouter.post(String path, Consumer<MockResponse> consumer) Execute a POST request to the target application.MockRouter.put(String path, MockContext context, Consumer<MockResponse> consumer) Execute a PUT request to the target application.MockRouter.put(String path, Consumer<MockResponse> consumer) Execute a PUT request to the target application.voidMockRouter.tryError(Throwable cause, Consumer<MockResponse> consumer) Invoke an error handler that matches the given exception.