public class


extends TestWatcher
   ↳ org.junit.rules.TestWatcher
     ↳ com.atlassian.jira.junit.rules.MockHttp<R extends javax.servlet.http.HttpServletRequest, S extends javax.servlet.http.HttpServletResponse>
Known Direct Subclasses

Class Overview

Sets up and tears down automatically the following, static methods used in the JIRA production code for accessing current HTTP objects:


Nested Classes
class MockHttp.DefaultMocks  
class MockHttp.MockitoMocks  
Public Methods
R mockRequest()
S mockResponse()
static MockHttp.DefaultMocks withDefaultMocks()
static MockHttp.MockitoMocks withMockitoMocks()
static <RR extends HttpServletRequest, RS extends HttpServletResponse> MockHttp<RR, RS> withMocks(RR mockRequest, RS mockResponse)
Protected Methods
void finished(Description description)
void starting(Description description)
Inherited Methods
From class org.junit.rules.TestWatcher
From class java.lang.Object
From interface org.junit.rules.TestRule

Public Methods

public R mockRequest ()

public S mockResponse ()

public static MockHttp.DefaultMocks withDefaultMocks ()

public static MockHttp.MockitoMocks withMockitoMocks ()

public static MockHttp<RR, RS> withMocks (RR mockRequest, RS mockResponse)

Protected Methods

protected void finished (Description description)

protected void starting (Description description)