Class MockDelegate<S>

    • Method Detail

      • mockDelegate

        public static <S> ProxyDelegate<S> mockDelegate​(ProxyPlugin<?,​S,​?> plugin,
                                                        S endpoint)
        Creates an instance with a ProxyPlugin and a mock endpoints.
        Parameters:
        plugin - the plugin
        endpoint - the endpoint
      • make

        public <V> V make​(Call<S,​V> call)
                   throws Exception
        Description copied from interface: ProxyDelegate
        Makes a Call to a given service endpoint.
        Specified by:
        make in interface ProxyDelegate<S>
        Type Parameters:
        V - the type of the value returned from the call
        Parameters:
        call - the call
        Returns:
        the value returned from the call
        Throws:
        Exception - if the call fails