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