From add101134a8e4ecec1126885b456f4d7322c1905 Mon Sep 17 00:00:00 2001 From: Daniel Gstoehl Date: Wed, 16 Aug 2023 17:45:24 +0200 Subject: [PATCH] fix mock configs --- .../verifier/ws/config/mock/MockFaqLinkConfig.java | 11 +++++++---- .../ws/config/mock/MockForceUpdateConfig.java | 11 +++++++---- .../verifier/ws/config/mock/MockInfoBoxConfig.java | 11 +++++++---- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/ch-covidcertificate-backend-config/ch-covidcertificate-backend-config-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/config/verifier/ws/config/mock/MockFaqLinkConfig.java b/ch-covidcertificate-backend-config/ch-covidcertificate-backend-config-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/config/verifier/ws/config/mock/MockFaqLinkConfig.java index 886432f..9f567c0 100644 --- a/ch-covidcertificate-backend-config/ch-covidcertificate-backend-config-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/config/verifier/ws/config/mock/MockFaqLinkConfig.java +++ b/ch-covidcertificate-backend-config/ch-covidcertificate-backend-config-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/config/verifier/ws/config/mock/MockFaqLinkConfig.java @@ -3,6 +3,7 @@ import ch.admin.bag.covidcertificate.backend.config.shared.helper.CheckModeInfoHelper; import ch.admin.bag.covidcertificate.backend.config.shared.helper.CovidCertNewsHelper; import ch.admin.bag.covidcertificate.backend.config.shared.helper.FaqHelper; +import ch.admin.bag.covidcertificate.backend.config.shared.helper.InfoBoxHelper; import ch.admin.bag.covidcertificate.backend.config.shared.model.Faq; import ch.admin.bag.covidcertificate.backend.config.shared.model.FaqEntry; import ch.admin.bag.covidcertificate.backend.config.shared.model.Language; @@ -31,9 +32,10 @@ public VerifierConfigController verifierConfigController( @Value("${ws.verifier.timeshiftDetection.enabled:false}") boolean timeshiftDetectionEnabled, @Value("${ws.verifier.checkModeReselectionAfterHours:48}") - int checkModeReselectionAfterHours) { + int checkModeReselectionAfterHours, + InfoBoxHelper infoBoxHelper) { return new MockConfigController( - messages, checkModeInfoHelper, faqHelper, covidCertNewsHelper, timeshiftDetectionEnabled, checkModeReselectionAfterHours); + messages, checkModeInfoHelper, faqHelper, covidCertNewsHelper, timeshiftDetectionEnabled, checkModeReselectionAfterHours, infoBoxHelper); } public class MockConfigController extends VerifierConfigController { @@ -44,8 +46,9 @@ public MockConfigController( FaqHelper faqHelper, CovidCertNewsHelper covidCertNewsHelper, boolean timeShiftDetectionEnabled, - int checkModeReselectionAfterHours) { - super(messages, checkModeInfoHelper, faqHelper, covidCertNewsHelper, timeShiftDetectionEnabled, checkModeReselectionAfterHours); + int checkModeReselectionAfterHours, + InfoBoxHelper infoBoxHelper) { + super(messages, checkModeInfoHelper, faqHelper, covidCertNewsHelper, timeShiftDetectionEnabled, checkModeReselectionAfterHours, infoBoxHelper); } @Override diff --git a/ch-covidcertificate-backend-config/ch-covidcertificate-backend-config-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/config/verifier/ws/config/mock/MockForceUpdateConfig.java b/ch-covidcertificate-backend-config/ch-covidcertificate-backend-config-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/config/verifier/ws/config/mock/MockForceUpdateConfig.java index 866e04a..f0ca7c1 100644 --- a/ch-covidcertificate-backend-config/ch-covidcertificate-backend-config-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/config/verifier/ws/config/mock/MockForceUpdateConfig.java +++ b/ch-covidcertificate-backend-config/ch-covidcertificate-backend-config-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/config/verifier/ws/config/mock/MockForceUpdateConfig.java @@ -3,6 +3,7 @@ import ch.admin.bag.covidcertificate.backend.config.shared.helper.CheckModeInfoHelper; import ch.admin.bag.covidcertificate.backend.config.shared.helper.CovidCertNewsHelper; import ch.admin.bag.covidcertificate.backend.config.shared.helper.FaqHelper; +import ch.admin.bag.covidcertificate.backend.config.shared.helper.InfoBoxHelper; import ch.admin.bag.covidcertificate.backend.config.shared.model.VerifierConfigResponse; import ch.admin.bag.covidcertificate.backend.config.shared.poeditor.Messages; import ch.admin.bag.covidcertificate.backend.config.shared.semver.Version; @@ -34,9 +35,10 @@ public VerifierConfigController verifierConfigController( @Value("${ws.verifier.timeshiftDetection.enabled:false}") boolean timeshiftDetectionEnabled, @Value("${ws.verifier.checkModeReselectionAfterHours:48}") - int checkModeReselectionAfterHours) { + int checkModeReselectionAfterHours, + InfoBoxHelper infoBoxHelper) { return new MockConfigController( - messages, checkModeInfoHelper, faqHelper, covidCertNewsHelper, timeshiftDetectionEnabled, checkModeReselectionAfterHours); + messages, checkModeInfoHelper, faqHelper, covidCertNewsHelper, timeshiftDetectionEnabled, checkModeReselectionAfterHours, infoBoxHelper); } public class MockConfigController extends VerifierConfigController { @@ -47,8 +49,9 @@ public MockConfigController( FaqHelper faqHelper, CovidCertNewsHelper covidCertNewsHelper, boolean timeShiftDetectionEnabled, - int checkModeReselectionAfterHours) { - super(messages, checkModeInfoHelper, faqHelper, covidCertNewsHelper, timeShiftDetectionEnabled, checkModeReselectionAfterHours); + int checkModeReselectionAfterHours, + InfoBoxHelper infoBoxHelper) { + super(messages, checkModeInfoHelper, faqHelper, covidCertNewsHelper, timeShiftDetectionEnabled, checkModeReselectionAfterHours, infoBoxHelper); } @Override diff --git a/ch-covidcertificate-backend-config/ch-covidcertificate-backend-config-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/config/verifier/ws/config/mock/MockInfoBoxConfig.java b/ch-covidcertificate-backend-config/ch-covidcertificate-backend-config-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/config/verifier/ws/config/mock/MockInfoBoxConfig.java index c95a298..75ea37c 100644 --- a/ch-covidcertificate-backend-config/ch-covidcertificate-backend-config-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/config/verifier/ws/config/mock/MockInfoBoxConfig.java +++ b/ch-covidcertificate-backend-config/ch-covidcertificate-backend-config-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/config/verifier/ws/config/mock/MockInfoBoxConfig.java @@ -3,6 +3,7 @@ import ch.admin.bag.covidcertificate.backend.config.shared.helper.CheckModeInfoHelper; import ch.admin.bag.covidcertificate.backend.config.shared.helper.CovidCertNewsHelper; import ch.admin.bag.covidcertificate.backend.config.shared.helper.FaqHelper; +import ch.admin.bag.covidcertificate.backend.config.shared.helper.InfoBoxHelper; import ch.admin.bag.covidcertificate.backend.config.shared.helper.MockHelper; import ch.admin.bag.covidcertificate.backend.config.shared.model.VerifierConfigResponse; import ch.admin.bag.covidcertificate.backend.config.shared.poeditor.Messages; @@ -28,9 +29,10 @@ public VerifierConfigController verifierConfigController( @Value("${ws.verifier.timeshiftDetection.enabled:false}") boolean timeshiftDetectionEnabled, @Value("${ws.verifier.checkModeReselectionAfterHours:48}") - int checkModeReselectionAfterHours) { + int checkModeReselectionAfterHours, + InfoBoxHelper infoBoxHelper) { return new MockConfigController( - messages, checkModeInfoHelper, faqHelper, covidCertNewsHelper, timeshiftDetectionEnabled , checkModeReselectionAfterHours); + messages, checkModeInfoHelper, faqHelper, covidCertNewsHelper, timeshiftDetectionEnabled , checkModeReselectionAfterHours, infoBoxHelper); } public class MockConfigController extends VerifierConfigController { @@ -41,8 +43,9 @@ public MockConfigController( FaqHelper faqHelper, CovidCertNewsHelper covidCertNewsHelper, boolean timeshiftDetectionEnabled, - int checkModeReselectionAfterHours) { - super(messages, checkModeInfoHelper, faqHelper, covidCertNewsHelper, timeshiftDetectionEnabled, checkModeReselectionAfterHours); + int checkModeReselectionAfterHours, + InfoBoxHelper infoboxHelper) { + super(messages, checkModeInfoHelper, faqHelper, covidCertNewsHelper, timeshiftDetectionEnabled, checkModeReselectionAfterHours, infoboxHelper); } @Override