Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
fix mock configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Gstoehl committed Aug 16, 2023
1 parent b8184f7 commit add1011
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit add1011

Please sign in to comment.