Class JUnitAppConfig


  • public final class JUnitAppConfig
    extends Object
    Configuration for the JUnit runner application.
    • Constructor Detail

      • JUnitAppConfig

        public JUnitAppConfig()
        Default constructor.
      • JUnitAppConfig

        public JUnitAppConfig​(String testName,
                              Class<?> testClass,
                              File dir)
        Constructor without logback config XML file.
        Parameters:
        testName - Unique name of the test.
        testClass - Test class to execute.
        dir - Directory for results.
      • JUnitAppConfig

        public JUnitAppConfig​(String testName,
                              Class<?> testClass,
                              File dir,
                              File logbackXmlSrc)
        Constructor with all data.
        Parameters:
        testName - Unique name of the test.
        testClass - Test class to execute.
        dir - Directory for results.
        logbackXmlSrc - Logback XML configuration file to copy if it does not exist in the target directory.
    • Method Detail

      • getTestName

        public final String getTestName()
        Returns the unique test name.
        Returns:
        Test name.
      • setTestName

        public final void setTestName​(String testName)
        Sets the test name to anew value.
        Parameters:
        testName - Test name to set.
      • getTestClass

        public final Class<?> getTestClass()
        Returns the test test class.
        Returns:
        Test class to execute.
      • setTestClass

        public final void setTestClass​(Class<?> testClass)
        Sets the test test class to a new value.
        Parameters:
        testClass - Test class.
      • getDir

        public final File getDir()
        Returns the base directory.
        Returns:
        Working directory for log configuration and results.
      • setDir

        public final void setDir​(File dir)
        Sets the base directory to a new value.
        Parameters:
        dir - Working directory for log configuration and results.
      • getLogbackXmlSrc

        public final File getLogbackXmlSrc()
        Returns the Logback XML configuration file to copy if it does not exist in the target directory.
        Returns:
        Location of config file.
      • setLogbackXmlSrc

        public final void setLogbackXmlSrc​(File logbackXmlSrc)
        Sets the Logback XML configuration file to copy if it does not exist in the target directory.
        Parameters:
        logbackXmlSrc - Location of config file to set.