use of org.hisp.dhis.dxf2.util.InputUtils in project dhis2-core by dhis2.
the class DefaultCompleteDataSetRegistrationExchangeServiceTest method setUp.
@BeforeEach
public void setUp() {
user = new User();
when(environment.getActiveProfiles()).thenReturn(new String[] { "test" });
when(dhisConfigurationProvider.getProperty(ConfigurationKey.SYSTEM_CACHE_MAX_SIZE_FACTOR)).thenReturn("1");
CacheBuilderProvider cacheBuilderProvider = new DefaultCacheBuilderProvider();
DefaultCacheProvider cacheContext = new DefaultCacheProvider(cacheBuilderProvider, environment, dhisConfigurationProvider);
InputUtils inputUtils = new InputUtils(categoryService, idObjManager, cacheContext);
DefaultAggregateAccessManager aggregateAccessManager = new DefaultAggregateAccessManager(aclService, cacheContext);
subject = new DefaultCompleteDataSetRegistrationExchangeService(cdsrStore, idObjManager, orgUnitService, notifier, i18nManager, batchHandlerFactory, systemSettingManager, categoryService, periodService, currentUserService, registrationService, inputUtils, aggregateAccessManager, notificationPublisher, messageService, JacksonObjectMapperConfig.staticJsonMapper());
DEFAULT_COC = new CategoryOptionCombo();
}
Aggregations