Package com.hybris.cis.client.mock
Class SharedClientMock
- java.lang.Object
-
- com.hybris.cis.client.mock.SharedClientMock
-
- All Implemented Interfaces:
CisClient
- Direct Known Subclasses:
AvsClientMock,FraudClientMock,GeolocationClientMock,PaymentClientMock,ShippingClientMock,TaxClientMock
public class SharedClientMock extends java.lang.Object implements CisClient
Mock implementation ofCisClient
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPING_FAIL
-
Constructor Summary
Constructors Constructor Description SharedClientMock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.hybris.charon.RawResponsecreateRawResponseWithStatus(javax.ws.rs.core.Response.Status status)Create a dummyRawResponsewith the status given as a parametercom.hybris.charon.RawResponsedoPing(java.lang.String xCisClientRef, java.lang.String tenantId)Test the connection to the service
-
-
-
Field Detail
-
PING_FAIL
public static final java.lang.String PING_FAIL
- See Also:
- Constant Field Values
-
-
Method Detail
-
doPing
public com.hybris.charon.RawResponse doPing(java.lang.String xCisClientRef, java.lang.String tenantId)Test the connection to the service
-
createRawResponseWithStatus
protected com.hybris.charon.RawResponse createRawResponseWithStatus(javax.ws.rs.core.Response.Status status)
Create a dummyRawResponsewith the status given as a parameter- Parameters:
status- the status of theRawResponseto create- Returns:
- the created
RawResponse
-
-