#1449 Fix copying of Commands, add tests with command delay

This commit is contained in:
ljacqu
2018-09-11 22:03:46 +02:00
parent 035c2f352a
commit 22c08c9fc3
7 changed files with 53 additions and 44 deletions
@@ -41,8 +41,9 @@ class CommandMigrationService implements MigrationService {
private boolean moveOtherAccountsConfig(CommandConfig commandConfig) {
if (settingsMigrationService.hasOldOtherAccountsCommand()) {
OnLoginCommand command = new OnLoginCommand(
replaceOldPlaceholdersWithNew(settingsMigrationService.getOldOtherAccountsCommand()), Executor.CONSOLE);
OnLoginCommand command = new OnLoginCommand();
command.setCommand(replaceOldPlaceholdersWithNew(settingsMigrationService.getOldOtherAccountsCommand()));
command.setExecutor(Executor.CONSOLE);
command.setIfNumberOfAccountsAtLeast(
Optional.of(settingsMigrationService.getOldOtherAccountsCommandThreshold()));