- java.lang.Object
-
- org.fuin.mjunitrun.JUnitAppConfig
-
public final class JUnitAppConfig extends Object
Configuration for the JUnit runner application.
-
-
Constructor Summary
Constructors Constructor Description JUnitAppConfig()Default constructor.JUnitAppConfig(String testName, Class<?> testClass, File dir)Constructor without logback config XML file.JUnitAppConfig(String testName, Class<?> testClass, File dir, File logbackXmlSrc)Constructor with all data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetDir()Returns the base directory.FilegetLogbackXmlSrc()Returns the Logback XML configuration file to copy if it does not exist in the target directory.Class<?>getTestClass()Returns the test test class.StringgetTestName()Returns the unique test name.voidsetDir(File dir)Sets the base directory to a new value.voidsetLogbackXmlSrc(File logbackXmlSrc)Sets the Logback XML configuration file to copy if it does not exist in the target directory.voidsetTestClass(Class<?> testClass)Sets the test test class to a new value.voidsetTestName(String testName)Sets the test name to anew value.
-
-
-
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.
-
-