Class SharedClientMock

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PING_FAIL  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.hybris.charon.RawResponse createRawResponseWithStatus​(javax.ws.rs.core.Response.Status status)
      Create a dummy RawResponse with the status given as a parameter
      com.hybris.charon.RawResponse doPing​(java.lang.String xCisClientRef, java.lang.String tenantId)
      Test the connection to the service
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SharedClientMock

        public SharedClientMock()
    • Method Detail

      • doPing

        public com.hybris.charon.RawResponse doPing​(java.lang.String xCisClientRef,
                                                    java.lang.String tenantId)
        Test the connection to the service
        Specified by:
        doPing in interface CisClient
        Parameters:
        xCisClientRef - client ref to pass in the header
        tenantId - tenantId to pass in the header
        Returns:
        true unless xCisClientRef is set to PING_FAIL
      • createRawResponseWithStatus

        protected com.hybris.charon.RawResponse createRawResponseWithStatus​(javax.ws.rs.core.Response.Status status)
        Create a dummy RawResponse with the status given as a parameter
        Parameters:
        status - the status of the RawResponse to create
        Returns:
        the created RawResponse