FINERACT-1053:Client-AccountNumber-Length

This commit is contained in:
rrpawar96
2021-11-26 23:40:55 +08:00
committed by Petri Tuomola
parent 70e3b4e0db
commit 8dc5789607
3 changed files with 55 additions and 4 deletions
@@ -89,9 +89,9 @@ public class GlobalConfigurationHelper {
ArrayList<HashMap> expectedGlobalConfigurations = getAllDefaultGlobalConfigurations();
ArrayList<HashMap> actualGlobalConfigurations = getAllGlobalConfigurations(requestSpec, responseSpec);
// There are currently 35 global configurations.
Assertions.assertEquals(35, expectedGlobalConfigurations.size());
Assertions.assertEquals(35, actualGlobalConfigurations.size());
// There are currently 36 global configurations.
Assertions.assertEquals(36, expectedGlobalConfigurations.size());
Assertions.assertEquals(36, actualGlobalConfigurations.size());
for (int i = 0; i < expectedGlobalConfigurations.size(); i++) {
@@ -407,6 +407,14 @@ public class GlobalConfigurationHelper {
isAllowedBackDatedTransactionsBeforeInterestPostingDateForDays.put("trapDoor", false);
defaults.add(isAllowedBackDatedTransactionsBeforeInterestPostingDateForDays);
HashMap<String, Object> isClientAccountNumberLengthModify = new HashMap<>();
isClientAccountNumberLengthModify.put("id", 40);
isClientAccountNumberLengthModify.put("name", "custom-account-number-length");
isClientAccountNumberLengthModify.put("value", 0);
isClientAccountNumberLengthModify.put("enabled", false);
isClientAccountNumberLengthModify.put("trapDoor", false);
defaults.add(isClientAccountNumberLengthModify);
return defaults;
}