public class MockHttp<R extends javax.servlet.http.HttpServletRequest,S extends javax.servlet.http.HttpServletResponse>
extends org.junit.rules.TestWatcher
ActionContext
ExecutingHttpRequest
Modifier and Type | Class and Description |
---|---|
static class |
MockHttp.DefaultMocks |
static class |
MockHttp.MockitoMocks |
Modifier and Type | Method and Description |
---|---|
protected void |
finished(org.junit.runner.Description description) |
R |
mockRequest() |
S |
mockResponse() |
protected void |
starting(org.junit.runner.Description description) |
static MockHttp.DefaultMocks |
withDefaultMocks() |
static MockHttp.MockitoMocks |
withMockitoMocks() |
static <RR extends javax.servlet.http.HttpServletRequest,RS extends javax.servlet.http.HttpServletResponse> |
withMocks(RR mockRequest,
RS mockResponse) |
public static <RR extends javax.servlet.http.HttpServletRequest,RS extends javax.servlet.http.HttpServletResponse> MockHttp<RR,RS> withMocks(RR mockRequest, RS mockResponse)
public static MockHttp.DefaultMocks withDefaultMocks()
public static MockHttp.MockitoMocks withMockitoMocks()
protected void starting(org.junit.runner.Description description)
starting
in class org.junit.rules.TestWatcher
protected void finished(org.junit.runner.Description description)
finished
in class org.junit.rules.TestWatcher
public R mockRequest()
public S mockResponse()
Copyright © 2002-2018 Atlassian. All Rights Reserved.