Fix credit bureau organisation result processing in the test case.

FINERACT-1724
[x] Unit test for ThitsaWorksCreditBureauIntegrationWritePlatformServiceImpl
[x] Integration test for CreditBureau with WireMock
[x] Fix enum key case sensitivity on postgres
[x] Fix update key typo
[x] Add missing credit bureau organization fix for test cases
This commit is contained in:
Janos Haber
2022-11-16 14:04:36 +01:00
committed by Arnold Gálovics
parent 0155db70b7
commit 6ba5d7d5c4
7 changed files with 910 additions and 12 deletions
@@ -68,7 +68,7 @@ public class CreditBureauConfiguration extends AbstractPersistableCustom {
final Map<String, Object> actualChanges = new LinkedHashMap<>(1);
final String configurationKey = "configurationKey";
final String configurationKey = "configkey";
if (command.isChangeInStringParameterNamed(configurationKey, this.configurationKey)) {
final String newValue = command.stringValueOfParameterNamed(configurationKey);
@@ -73,11 +73,21 @@ public class ThitsaWorksCreditBureauIntegrationWritePlatformServiceImpl implemen
private final CreditBureauConfigurationRepositoryWrapper configDataRepository;
private final CreditBureauTokenCommandFromApiJsonDeserializer fromApiJsonDeserializer;
private final OkHttpClient client;
@Autowired
public ThitsaWorksCreditBureauIntegrationWritePlatformServiceImpl(final PlatformSecurityContext context,
final FromJsonHelper fromApiJsonHelper, final TokenRepositoryWrapper tokenRepositoryWrapper,
final CreditBureauConfigurationRepositoryWrapper configDataRepository,
final CreditBureauTokenCommandFromApiJsonDeserializer fromApiJsonDeserializer) {
this(new OkHttpClient(), context, fromApiJsonHelper, tokenRepositoryWrapper, configDataRepository, fromApiJsonDeserializer);
}
public ThitsaWorksCreditBureauIntegrationWritePlatformServiceImpl(final OkHttpClient okHttpClient,
final PlatformSecurityContext context, final FromJsonHelper fromApiJsonHelper,
final TokenRepositoryWrapper tokenRepositoryWrapper, final CreditBureauConfigurationRepositoryWrapper configDataRepository,
final CreditBureauTokenCommandFromApiJsonDeserializer fromApiJsonDeserializer) {
this.client = okHttpClient;
this.context = context;
this.tokenRepositoryWrapper = tokenRepositoryWrapper;
this.configDataRepository = configDataRepository;
@@ -93,7 +103,6 @@ public class ThitsaWorksCreditBureauIntegrationWritePlatformServiceImpl implemen
String reponseMessage = null;
RequestBody requestBody = null;
OkHttpClient client = new OkHttpClient();
if (process.equals("UploadCreditReport")) {
String fileName = fileData.getFileName();