Class ServerTestSetupParams

    • Constructor Detail

      • ServerTestSetupParams

        public ServerTestSetupParams​(ETestCaseSetupMethod setupMethod,
                                     URI setupRoot,
                                     String contextUrl,
                                     String contextPath,
                                     Map<String,​Serializable> params,
                                     MailServerSettings mailServerSettings)
        Creates a new params instance with the given data.
        Parameters:
        setupMethod - How to interpret the content of the getSetupRoot().
        setupRoot - The absolute path to the setup directory or file for the setup method.
        contextUrl - The base URL to the FC server (including the host etc.) For example http://localhost:8080/xima-formcycle.
        contextPath - Context path of the FC server (the beginning of the URI path, without the host etc.). For example xima-formcycle.
        params - A map with custom parameters for the test setup method.
        mailServerSettings - Settings for the client mail server.
    • Method Detail

      • getBaseUrl

        public String getBaseUrl()
        Returns:
        The base URL to the FC server (including the host etc.) For example http://localhost:8080/xima-formcycle.
      • getContextPath

        public String getContextPath()
        Returns:
        Context path of the FC server (the beginning of the URI path, without the host etc.). For example xima-formcycle.
      • getMailServerSettings

        public MailServerSettings getMailServerSettings()
        Returns:
        Settings for the client mail server.
      • getParamLong

        public Long getParamLong​(String name)
        Parameters:
        name - Name of the parameter to retrieve.
        Returns:
        The custom parameter with the given name, as a long.
      • getParamBoolean

        public Boolean getParamBoolean​(String name)
        Parameters:
        name - Name of the parameter to retrieve.
        Returns:
        The custom parameter with the given name, as a boolean.
      • getParamBoolean

        public boolean getParamBoolean​(String name,
                                       boolean defaultValue)
        Parameters:
        name - Name of the parameter to retrieve.
        defaultValue - Default value to return when no parameter with the given name exists.
        Returns:
        The custom parameter with the given name, as a boolean.
      • getParamString

        public String getParamString​(String name)
        Parameters:
        name - Name of the parameter to retrieve.
        Returns:
        The custom parameter with the given name, as a string.
      • getSetupRoot

        public URI getSetupRoot()
        Returns:
        The absolute path to the setup directory or file for the setup method.