Search in sources :

Example 1 with InputUtils

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();
}
Also used : CacheBuilderProvider(org.hisp.dhis.cache.CacheBuilderProvider) DefaultCacheBuilderProvider(org.hisp.dhis.cache.DefaultCacheBuilderProvider) DefaultCacheBuilderProvider(org.hisp.dhis.cache.DefaultCacheBuilderProvider) User(org.hisp.dhis.user.User) InputUtils(org.hisp.dhis.dxf2.util.InputUtils) DefaultAggregateAccessManager(org.hisp.dhis.datavalue.DefaultAggregateAccessManager) DefaultCacheProvider(org.hisp.dhis.cache.DefaultCacheProvider) DhisConvenienceTest.createCategoryOptionCombo(org.hisp.dhis.DhisConvenienceTest.createCategoryOptionCombo) CategoryOptionCombo(org.hisp.dhis.category.CategoryOptionCombo) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

DhisConvenienceTest.createCategoryOptionCombo (org.hisp.dhis.DhisConvenienceTest.createCategoryOptionCombo)1 CacheBuilderProvider (org.hisp.dhis.cache.CacheBuilderProvider)1 DefaultCacheBuilderProvider (org.hisp.dhis.cache.DefaultCacheBuilderProvider)1 DefaultCacheProvider (org.hisp.dhis.cache.DefaultCacheProvider)1 CategoryOptionCombo (org.hisp.dhis.category.CategoryOptionCombo)1 DefaultAggregateAccessManager (org.hisp.dhis.datavalue.DefaultAggregateAccessManager)1 InputUtils (org.hisp.dhis.dxf2.util.InputUtils)1 User (org.hisp.dhis.user.User)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1