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:
  • Constructor Details

    • TestConfig

      @DataBoundConstructor public TestConfig(String tbcFile, String tcfFile, boolean forceReload, boolean loadOnly, boolean keepConfig, List<GlobalConstant> constants)
      Instantiates a new TestConfig.
      Parameters:
      tbcFile - the test bench configuration file
      tcfFile - the test configuration file
      forceReload - specifies whether to reload the configuration
      loadOnly - specifies whether to load the configuration only
      keepConfig - specifies whether to keep the previously loaded configuration
      constants - the list of global constants
    • TestConfig

      public TestConfig(String tbcFile, String tcfFile)
      Instantiates a new TestConfig with empty global constants.
      Parameters:
      tbcFile - the test bench configuration file
      tcfFile - the test configuration file
    • TestConfig

      public TestConfig(String tbcFile, String tcfFile, boolean forceReload, boolean loadOnly)
      Instantiates a new TestConfig with empty global constants.
      Parameters:
      tbcFile - the test bench configuration file
      tcfFile - the test configuration file
      forceReload - specifies whether to reload the configuration
      loadOnly - specifies whether to load the configuration only
  • Method Details

    • newInstance

      public static TestConfig newInstance()
      Instantiates a new TestConfig 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 interface ExpandableConfig
      Parameters:
      envVars - the build environment variables
      Returns:
      the expanded specific configuration
    • equals

      public final boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object