Class BaseDataSourceTestNoDal

    • Constructor Detail

      • BaseDataSourceTestNoDal

        public BaseDataSourceTestNoDal()
    • Method Detail

      • doRequest

        protected String doRequest​(String wsPart,
                                   String content,
                                   int expectedResponse,
                                   String method)
                            throws Exception
        Performs a request to Openbravo returning its response and asserting the response code matches expectedResponse.
        Throws:
        Exception
      • doRequest

        protected String doRequest​(String wsPart,
                                   Map<String,​String> params,
                                   int expectedResponse,
                                   String method)
                            throws Exception
        Performs a request to Openbravo returning its response and asserting the response code matches expectedResponse.
        Throws:
        Exception
      • doRequest

        protected String doRequest​(String wsPart,
                                   String content,
                                   int expectedResponse,
                                   String method,
                                   String contentType)
                            throws Exception
        Performs a request to Openbravo returning its response and asserting the response code matches expectedResponse.
        Throws:
        Exception
      • getOpenbravoURL

        protected String getOpenbravoURL()
        Obtains URL of Openbravo instance, by default taken from Openbravo.poperties context.url property
      • getLogin

        protected String getLogin()
        Returns the login used to login for the requests. The default value is LOGIN
        Returns:
        the login name used to login for the requests
      • getPassword

        protected String getPassword()
        Returns the password used to login for the requests. The default value is PWD
        Returns:
        the password used to login for the requests
      • getSessionCsrfToken

        protected String getSessionCsrfToken()