Class TestXmlrpcClient

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.Object FAILURE  
      static java.lang.Object SUCCESS  
    • Constructor Summary

      Constructors 
      Constructor Description
      TestXmlrpcClient​(java.net.URL endpoint)
      Constructor.
    • Field Detail

      • SUCCESS

        public static final java.lang.Object SUCCESS
      • FAILURE

        public static final java.lang.Object FAILURE
    • Constructor Detail

      • TestXmlrpcClient

        TestXmlrpcClient​(java.net.URL endpoint)
        Constructor.
        Parameters:
        endpoint - hub HTTP endpoint
    • Method Detail

      • deserializeResponse

        protected java.lang.Object deserializeResponse​(java.io.InputStream in)
                                                throws java.io.IOException
        Returns SUCCESS or FAILURE.
        Overrides:
        deserializeResponse in class InternalClient
        Parameters:
        in - input stream containing response document
        Throws:
        java.io.IOException
      • checkSuccessCall

        public void checkSuccessCall​(java.lang.String method,
                                     java.util.List params)
                              throws java.io.IOException
        Makes a call, and asserts that the result is a normal XML-RPC response.
        Parameters:
        method - XML-RPC method name
        params - parameters for XML-RPC call (SAMP-compatible)
        Throws:
        TestException - if the response is not a success
        java.io.IOException
      • checkFailureCall

        public void checkFailureCall​(java.lang.String method,
                                     java.util.List params)
                              throws java.io.IOException
        Makes a call, and asserts that the result is an XML-RPC fault.
        Parameters:
        method - XML-RPC method name
        params - parameters for XML-RPC call (SAMP-compatible)
        Throws:
        TestException - if the response is not a fault
        java.io.IOException