Class TestConfig
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<TestConfig>
-
- de.tracetronic.jenkins.plugins.ecutest.test.config.TestConfig
-
- All Implemented Interfaces:
ExpandableConfig
,Describable<TestConfig>
,Serializable
public class TestConfig extends AbstractDescribableImpl<TestConfig> implements Serializable, ExpandableConfig
Class holding the test configurations (e.g. TBC, TCF).- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestConfig.DescriptorImpl<T>
DescriptorImpl forTestConfig
.
-
Constructor Summary
Constructors Constructor Description TestConfig(String tbcFile, String tcfFile)
Instantiates a newTestConfig
with empty global constants.TestConfig(String tbcFile, String tcfFile, boolean forceReload, boolean loadOnly)
Instantiates a newTestConfig
with empty global constants.TestConfig(String tbcFile, String tcfFile, boolean forceReload, boolean loadOnly, boolean keepConfig, List<GlobalConstant> constants)
Instantiates a newTestConfig
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
TestConfig
expand(EnvVars envVars)
Expands the test configuration parameters by using the current build environment variables.List<GlobalConstant>
getConstants()
String
getTbcFile()
String
getTcfFile()
int
hashCode()
boolean
isForceReload()
boolean
isKeepConfig()
boolean
isLoadOnly()
static TestConfig
newInstance()
Instantiates a newTestConfig
with default values.-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
TestConfig
@DataBoundConstructor public TestConfig(String tbcFile, String tcfFile, boolean forceReload, boolean loadOnly, boolean keepConfig, List<GlobalConstant> constants)
Instantiates a newTestConfig
.- Parameters:
tbcFile
- the test bench configuration filetcfFile
- the test configuration fileforceReload
- specifies whether to reload the configurationloadOnly
- specifies whether to load the configuration onlykeepConfig
- specifies whether to keep the previously loaded configurationconstants
- the list of global constants
-
TestConfig
public TestConfig(String tbcFile, String tcfFile)
Instantiates a newTestConfig
with empty global constants.- Parameters:
tbcFile
- the test bench configuration filetcfFile
- the test configuration file
-
TestConfig
public TestConfig(String tbcFile, String tcfFile, boolean forceReload, boolean loadOnly)
Instantiates a newTestConfig
with empty global constants.- Parameters:
tbcFile
- the test bench configuration filetcfFile
- the test configuration fileforceReload
- specifies whether to reload the configurationloadOnly
- specifies whether to load the configuration only
-
-
Method Detail
-
newInstance
public static TestConfig newInstance()
Instantiates a newTestConfig
with default values.- Returns:
- the default
TestConfig
-
getTbcFile
public String getTbcFile()
-
getTcfFile
public String getTcfFile()
-
isForceReload
public boolean isForceReload()
-
isLoadOnly
public boolean isLoadOnly()
-
isKeepConfig
public boolean isKeepConfig()
-
getConstants
public List<GlobalConstant> getConstants()
-
expand
public TestConfig expand(EnvVars envVars)
Description copied from interface:ExpandableConfig
Expands the test configuration parameters by using the current build environment variables.- Specified by:
expand
in interfaceExpandableConfig
- Parameters:
envVars
- the build environment variables- Returns:
- the expanded specific configuration
-
-