Skip to content
Snippets Groups Projects
Commit 52b0de4a authored by felmer's avatar felmer
Browse files

SSDM-3897: SetEnableTechnologiesVariableActionTest adapted

SVN: 37058
parent adfef713
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ public class SetEnableTechnologiesVariableActionTest extends AbstractFileSystemT ...@@ -93,7 +93,7 @@ public class SetEnableTechnologiesVariableActionTest extends AbstractFileSystemT
variables.setProperty(TECHNOLOGY_SCREENING, "true"); variables.setProperty(TECHNOLOGY_SCREENING, "true");
updateEnabledTechnologyProperties(variables, false); updateEnabledTechnologyProperties(variables, false);
assertEquals("[, enabled-modules = dropbox-monitor, dataset-uploader, screening]", assertEquals("[, enabled-modules = dropbox-monitor, dataset-uploader, data-set-file-search, screening]",
FileUtilities.loadToStringList(corePluginsProperties).toString()); FileUtilities.loadToStringList(corePluginsProperties).toString());
} }
...@@ -101,14 +101,15 @@ public class SetEnableTechnologiesVariableActionTest extends AbstractFileSystemT ...@@ -101,14 +101,15 @@ public class SetEnableTechnologiesVariableActionTest extends AbstractFileSystemT
public void testUpdateInstallationWithOtherEnabledTechnologiesInAs() public void testUpdateInstallationWithOtherEnabledTechnologiesInAs()
{ {
FileUtilities.writeToFile(corePluginsProperties, "abc = 123\n" + ENABLED_TECHNOLOGIES_KEY FileUtilities.writeToFile(corePluginsProperties, "abc = 123\n" + ENABLED_TECHNOLOGIES_KEY
+ "=dropbox-monitor, dataset-uploader, proteomics, my-tech"); + "=dropbox-monitor, dataset-uploader, data-set-file-search, proteomics, my-tech");
Properties variables = new Properties(); Properties variables = new Properties();
variables.setProperty(TECHNOLOGY_PROTEOMICS, "true"); variables.setProperty(TECHNOLOGY_PROTEOMICS, "true");
variables.setProperty(TECHNOLOGY_SCREENING, "false"); variables.setProperty(TECHNOLOGY_SCREENING, "false");
updateEnabledTechnologyProperties(variables, false); updateEnabledTechnologyProperties(variables, false);
assertEquals("[abc = 123, " + ENABLED_TECHNOLOGIES_KEY + "=dropbox-monitor, dataset-uploader, proteomics, my-tech]", assertEquals("[abc = 123, " + ENABLED_TECHNOLOGIES_KEY + "=dropbox-monitor, dataset-uploader, "
+ "data-set-file-search, proteomics, my-tech]",
FileUtilities.loadToStringList(corePluginsProperties).toString()); FileUtilities.loadToStringList(corePluginsProperties).toString());
} }
...@@ -116,14 +117,15 @@ public class SetEnableTechnologiesVariableActionTest extends AbstractFileSystemT ...@@ -116,14 +117,15 @@ public class SetEnableTechnologiesVariableActionTest extends AbstractFileSystemT
public void testUpdateUnchangedProperty() public void testUpdateUnchangedProperty()
{ {
FileUtilities.writeToFile(corePluginsProperties, "abc = 123\n" + ENABLED_TECHNOLOGIES_KEY FileUtilities.writeToFile(corePluginsProperties, "abc = 123\n" + ENABLED_TECHNOLOGIES_KEY
+ "=dropbox-monitor, dataset-uploader, proteomics"); + "=dropbox-monitor, dataset-uploader, data-set-file-search, proteomics");
Properties variables = new Properties(); Properties variables = new Properties();
variables.setProperty(TECHNOLOGY_PROTEOMICS, "true"); variables.setProperty(TECHNOLOGY_PROTEOMICS, "true");
variables.setProperty(TECHNOLOGY_SCREENING, "false"); variables.setProperty(TECHNOLOGY_SCREENING, "false");
updateEnabledTechnologyProperties(variables, false); updateEnabledTechnologyProperties(variables, false);
assertEquals("[abc = 123, " + ENABLED_TECHNOLOGIES_KEY + "=dropbox-monitor, dataset-uploader, proteomics]", FileUtilities assertEquals("[abc = 123, " + ENABLED_TECHNOLOGIES_KEY + "=dropbox-monitor, dataset-uploader, "
+ "data-set-file-search, proteomics]", FileUtilities
.loadToStringList(corePluginsProperties).toString()); .loadToStringList(corePluginsProperties).toString());
} }
...@@ -138,7 +140,8 @@ public class SetEnableTechnologiesVariableActionTest extends AbstractFileSystemT ...@@ -138,7 +140,8 @@ public class SetEnableTechnologiesVariableActionTest extends AbstractFileSystemT
updateEnabledTechnologyProperties(variables, false); updateEnabledTechnologyProperties(variables, false);
assertEquals("[abc = 123, " + ENABLED_TECHNOLOGIES_KEY + " = dropbox-monitor, dataset-uploader, proteomics, screening, answer = 42]", assertEquals("[abc = 123, " + ENABLED_TECHNOLOGIES_KEY + " = dropbox-monitor, dataset-uploader, "
+ "data-set-file-search, proteomics, screening, answer = 42]",
FileUtilities FileUtilities
.loadToStringList(corePluginsProperties).toString()); .loadToStringList(corePluginsProperties).toString());
} }
...@@ -153,7 +156,8 @@ public class SetEnableTechnologiesVariableActionTest extends AbstractFileSystemT ...@@ -153,7 +156,8 @@ public class SetEnableTechnologiesVariableActionTest extends AbstractFileSystemT
updateEnabledTechnologyProperties(variables, false); updateEnabledTechnologyProperties(variables, false);
assertEquals("[abc = 123, " + ENABLED_TECHNOLOGIES_KEY + " = dropbox-monitor, dataset-uploader, screening]", FileUtilities assertEquals("[abc = 123, " + ENABLED_TECHNOLOGIES_KEY + " = dropbox-monitor, dataset-uploader, "
+ "data-set-file-search, screening]", FileUtilities
.loadToStringList(corePluginsProperties).toString()); .loadToStringList(corePluginsProperties).toString());
} }
...@@ -168,8 +172,9 @@ public class SetEnableTechnologiesVariableActionTest extends AbstractFileSystemT ...@@ -168,8 +172,9 @@ public class SetEnableTechnologiesVariableActionTest extends AbstractFileSystemT
updateEnabledTechnologyProperties(variables, false); updateEnabledTechnologyProperties(variables, false);
assertEquals("[a = b, " + ENABLED_TECHNOLOGIES_KEY + " = dropbox-monitor, dataset-uploader, screening, " assertEquals("[a = b, " + ENABLED_TECHNOLOGIES_KEY + " = dropbox-monitor, dataset-uploader, "
+ "gamma = alpha]", FileUtilities.loadToStringList(corePluginsProperties).toString()); + "data-set-file-search, screening, gamma = alpha]",
FileUtilities.loadToStringList(corePluginsProperties).toString());
} }
private AutomatedInstallData updateEnabledTechnologyProperties(Properties variables, private AutomatedInstallData updateEnabledTechnologyProperties(Properties variables,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment