Class RealMeasurementsTests.QMTestModifier
java.lang.Object
net.ssehub.easy.producer.scenario_tests.RealMeasurementsTests.QMTestModifier
- All Implemented Interfaces:
AbstractScenarioTest.ITestModifier
- Enclosing class:
RealMeasurementsTests
private static class RealMeasurementsTests.QMTestModifier
extends Object
implements AbstractScenarioTest.ITestModifier
Modifies a QM test by enabling a specified variant of the pipelines configuration file.
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcleanUp()Cleans up if not already done.private voidCopies a file if it exists to a target location.getTempFolderName(String projectName) Returns the (modified) temp folder name (last segment).getVilOutputFolder(File tmp) Returns the VIL output folder to use.Returns the VIL start rule name.voidCalled after copying files from a base test template to the actual test folder.private voidsetVariantNr(int variantNr) Changes the variant to activate.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.ssehub.easy.producer.scenario_tests.AbstractScenarioTest.ITestModifier
getConfigurationFolder
-
Field Details
-
variantNr
private int variantNr -
target
-
-
Constructor Details
-
QMTestModifier
private QMTestModifier()
-
-
Method Details
-
postCopy
Description copied from interface:AbstractScenarioTest.ITestModifierCalled after copying files from a base test template to the actual test folder.- Specified by:
postCopyin interfaceAbstractScenarioTest.ITestModifier- Parameters:
target- the actual test folder
-
copy
Copies a file if it exists to a target location. Ignores non existing sources files- Parameters:
src- the source filetgt- the target location
-
cleanUp
private void cleanUp()Cleans up if not already done. -
setVariantNr
private void setVariantNr(int variantNr) Changes the variant to activate.- Parameters:
variantNr- the variant nr
-
getTempFolderName
Description copied from interface:AbstractScenarioTest.ITestModifierReturns the (modified) temp folder name (last segment).- Specified by:
getTempFolderNamein interfaceAbstractScenarioTest.ITestModifier- Parameters:
projectName- the project name usually used as temp folder name.- Returns:
- the temp folder name (last segment)
-
getVilOutputFolder
Description copied from interface:AbstractScenarioTest.ITestModifierReturns the VIL output folder to use.- Specified by:
getVilOutputFolderin interfaceAbstractScenarioTest.ITestModifier- Parameters:
tmp- the (temporary) folder where the model to test is located- Returns:
- the VIL output folder, may be null for none
-
getVilStartRuleName
Description copied from interface:AbstractScenarioTest.ITestModifierReturns the VIL start rule name.- Specified by:
getVilStartRuleNamein interfaceAbstractScenarioTest.ITestModifier- Returns:
- the start rule name
-