Class ObservableTestHelperLifeCycle
java.lang.Object
de.hybris.platform.cpq.productconfig.services.impl.ObservableTestHelperLifeCycle
Helper class for unit tests
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> rx.Observable<com.hybris.charon.RawResponse<T>>mockEmptyResponse(int httpStatusCode) mocks an empty response with status<T> rx.Observable<com.hybris.charon.RawResponse<T>>mockResponse(T content, int httpStatusCode) mocks response with content and status<T> rx.Observable<com.hybris.charon.RawResponse<T>>mockResponse(T content, int httpStatusCode, Map<String, String> headers) mocks response with content, status and header
-
Field Details
-
COOKIE_LIST
-
-
Constructor Details
-
ObservableTestHelperLifeCycle
- Parameters:
clientUtil-
-
-
Method Details
-
mockEmptyResponse
public <T> rx.Observable<com.hybris.charon.RawResponse<T>> mockEmptyResponse(int httpStatusCode) mocks an empty response with status -
mockResponse
public <T> rx.Observable<com.hybris.charon.RawResponse<T>> mockResponse(T content, int httpStatusCode) mocks response with content and status -
mockResponse
public <T> rx.Observable<com.hybris.charon.RawResponse<T>> mockResponse(T content, int httpStatusCode, Map<String, String> headers) mocks response with content, status and header
-