Class TestSystemInfo


  • public final class TestSystemInfo
    extends Object
    POJO class with details on the formcycle mock system environment created for tests.
    Since:
    8.0.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • TestSystemInfo

        public TestSystemInfo​(File testDir,
                              String jdbcUrl,
                              String contextName)
        Parameters:
        testDir - The temporary directory used for the tests, contains e.g. the XFC_DATA_DIR and XFC_CONFIG_DIR.
        jdbcUrl - The JDBC URL for the in-RAM H2 database.
        contextName - The custom context name of the web application. This is a random string that is different for each run.
    • Method Detail

      • getJdbcUrl

        public String getJdbcUrl()
        Returns:
        The JDBC URL for the in-RAM H2 database.
      • getTestDir

        public File getTestDir()
        Returns:
        The temporary directory used for the tests, contains e.g. the XFC_DATA_DIR and XFC_CONFIG_DIR.
      • getContextName

        public String getContextName()
        Returns:
        The custom context name of the web application. This is a random string that is different for each run.