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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTestConfig
(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
Modifier and TypeMethodDescriptionfinal boolean
Expands the test configuration parameters by using the current build environment variables.final int
hashCode()
boolean
boolean
boolean
static TestConfig
Instantiates a newTestConfig
with default values.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
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
Instantiates a newTestConfig
with empty global constants.- Parameters:
tbcFile
- the test bench configuration filetcfFile
- the test configuration file
-
TestConfig
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 Details
-
newInstance
Instantiates a newTestConfig
with default values.- Returns:
- the default
TestConfig
-
getTbcFile
-
getTcfFile
-
isForceReload
public boolean isForceReload() -
isLoadOnly
public boolean isLoadOnly() -
isKeepConfig
public boolean isKeepConfig() -
getConstants
-
expand
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
-
equals
-
hashCode
public final int hashCode()
-