AddLanguageToActionExtractDatePart extends BaseUpgradeTaskTo_2_4_0_PE { @Override public void run() { AddLanguageToActionExtractDatePartUpgrade.upgradeActions(preparationRepository); }  @Override void run(); @Override int getOrder(); @Override UpgradeTask.target getTarget();  }
@Test public void shouldAddCreateNewColumnParameter() { task.run(); Optional<Action> extractDatePart = preparationRepository .list(PreparationActions.class) .flatMap(a -> a.getActions().stream()) .filter(a -> ExtractDateTokens.ACTION_NAME.equals(a.getName())) .findAny(); assertTrue(extractDatePart.isPresent()); assertEquals(Locale.getDefault().getLanguage(), extractDatePart.get().getParameters().get(ExtractDateTokens.LANGUAGE)); }