Package de.xima.fc.mock
Class MockRequestResponseBuilder
java.lang.Object
de.xima.fc.mock.MockRequestResponseBuilder
Builder for mock form requests that can be used in unit tests.
- Since:
- 7.0.2
- Author:
- XIMA Media GmbH
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.lang3.tuple.Pair<org.springframework.mock.web.MockHttpServletRequest,
org.springframework.mock.web.MockHttpServletResponse> build()
static final MockRequestResponseBuilder
newInstance
(String httpMethod, String uri) withContent
(String content) withContentType
(String contentType) withFrqSession
(String frid) withFrqSession
(String frid, Projekt project) withFrqSession
(String frid, Projekt project, String requestUrl) withFrqSession
(String frid, Projekt project, String requestUrl, String processId) withHeader
(String name, String value) withParamAuthToken
(String rpAuthToken) withParamFcpuid
(String rpFcpuid) withParamFrid
(String rpFrid) withParamLang
(String rpLang) withRequestAttribute
(String key, Object value)
-
Method Details
-
newInstance
-
withHeader
-
withParam
-
withParamFrid
-
withParamFcpuid
-
withParamLang
-
withParamAuthToken
-
withFrqSession
-
withFrqSession
-
withFrqSession
-
withFrqSession
public MockRequestResponseBuilder withFrqSession(String frid, Projekt project, String requestUrl, String processId) -
withContent
-
withContentType
-
withRequestAttribute
-
build
public org.apache.commons.lang3.tuple.Pair<org.springframework.mock.web.MockHttpServletRequest,org.springframework.mock.web.MockHttpServletResponse> build()
-