diff --git a/avni-server-api/src/test/java/org/avni/server/service/AddressLevelServiceTest.java b/avni-server-api/src/test/java/org/avni/server/service/AddressLevelServiceTest.java index c43366396..bc20b822e 100644 --- a/avni-server-api/src/test/java/org/avni/server/service/AddressLevelServiceTest.java +++ b/avni-server-api/src/test/java/org/avni/server/service/AddressLevelServiceTest.java @@ -72,7 +72,7 @@ public void shouldFetchDifferentAddressIdsWhenSubjectTypeChanges() throws JsonPr .thenReturn(singletonList(createAddressLevelType(2L))); AddressLevelCache addressLevelCache = new AddressLevelCache(entityManager, locationRepository); - AddressLevelService addressLevelService = new AddressLevelService(locationRepository, addressLevelTypeRepository, organisationConfigService, addressLevelCache); + AddressLevelService addressLevelService = new AddressLevelService(locationRepository, addressLevelTypeRepository, organisationConfigService, addressLevelCache, mock(LocationHierarchyService.class)); Catchment catchment = new Catchment(); catchment.setId(1L);