Package net.officefloor.web.mock
Class MockWebApp
- java.lang.Object
-
- net.officefloor.web.mock.MockWebApp
-
public class MockWebApp extends java.lang.Object
Mock web application.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpApplicationState
mockApplicationState(java.lang.String contextPath)
Mocks theHttpApplicationState
.static HttpRequestState
mockRequestState(ServerHttpConnection connection)
Mocks theHttpRequestState
.static HttpSession
mockSession(ServerHttpConnection connection)
Mocks theHttpSession
.
-
-
-
Method Detail
-
mockRequestState
public static HttpRequestState mockRequestState(ServerHttpConnection connection)
Mocks theHttpRequestState
.- Parameters:
connection
-ServerHttpConnection
for theHttpRequestState
.- Returns:
HttpRequestState
.
-
mockSession
public static HttpSession mockSession(ServerHttpConnection connection)
Mocks theHttpSession
.- Parameters:
connection
-ServerHttpConnection
for theHttpSession
.- Returns:
HttpSession
.
-
mockApplicationState
public static HttpApplicationState mockApplicationState(java.lang.String contextPath)
Mocks theHttpApplicationState
.- Parameters:
contextPath
- Context path for the application. May benull
.- Returns:
HttpApplicationState
.
-
-