Skip to content

Commit ddc64d3

Browse files
committed
#1618 | Tests fixed
1 parent 6a71776 commit ddc64d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

avni-server-api/src/test/java/org/avni/server/service/OrganisationConfigServiceTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void shouldRetrieveOptionalObjectFromOrganisationSettings() {
2828
JsonObject settings = new JsonObject().with(OrganisationConfigSettingKey.customRegistrationLocations.name(), true);
2929
organisationConfig.setSettings(settings);
3030
when(organisationRepository.findByOrganisationId(25l)).thenReturn(organisationConfig);
31-
OrganisationConfigService organisationConfigService = new OrganisationConfigService(organisationRepository, null, null, null);
31+
OrganisationConfigService organisationConfigService = new OrganisationConfigService(organisationRepository, null, null, null, null);
3232

3333
Organisation organisation = new Organisation();
3434
organisation.setId(25l);
@@ -56,7 +56,7 @@ public void shouldCheckIfMessagingFeatureEnabled() {
5656
JsonObject settings = new JsonObject().with(OrganisationConfigSettingKey.enableMessaging.name(), true);
5757
organisationConfigWithMessagingEnabled.setSettings(settings);
5858
when(organisationConfigRepository.findByOrganisationId(organisationId)).thenReturn(organisationConfigWithoutMessagingEnabled).thenReturn(organisationConfigWithMessagingEnabled);
59-
OrganisationConfigService organisationConfigService = new OrganisationConfigService(organisationConfigRepository, null, null, null);
59+
OrganisationConfigService organisationConfigService = new OrganisationConfigService(organisationConfigRepository, null, null, null, null);
6060

6161
assertThat(organisationConfigService.isMessagingEnabled(), is(false));
6262
assertThat(organisationConfigService.isMessagingEnabled(), is(true));
@@ -66,7 +66,7 @@ public void shouldCheckIfMessagingFeatureEnabled() {
6666
public void shouldRemoveVoidedAddressLevelTypeFromCustomRegistrationLocations() {
6767
// Setup
6868
OrganisationConfigRepository organisationConfigRepository = mock(OrganisationConfigRepository.class);
69-
OrganisationConfigService organisationConfigService = new OrganisationConfigService(organisationConfigRepository, null, null, null);
69+
OrganisationConfigService organisationConfigService = new OrganisationConfigService(organisationConfigRepository, null, null, null, null);
7070

7171
// Create test data
7272
Organisation organisation = new Organisation();
@@ -111,7 +111,7 @@ public void shouldRemoveVoidedAddressLevelTypeFromCustomRegistrationLocations()
111111
public void shouldRemoveEntireSettingWhenAllLocationTypesVoided() {
112112
// Setup
113113
OrganisationConfigRepository organisationConfigRepository = mock(OrganisationConfigRepository.class);
114-
OrganisationConfigService organisationConfigService = new OrganisationConfigService(organisationConfigRepository, null, null, null);
114+
OrganisationConfigService organisationConfigService = new OrganisationConfigService(organisationConfigRepository, null, null, null, null);
115115

116116
// Create test data
117117
Organisation organisation = new Organisation();

0 commit comments

Comments
 (0)