use of org.hisp.dhis.organisationunit.DefaultOrganisationUnitService in project dhis2-core by dhis2.
the class QueryParserTest method setUpTest.
@Override
protected void setUpTest() throws Exception {
OrganisationUnit orgUnitA = createOrganisationUnit('A');
User user = createUser('A');
user.addOrganisationUnit(orgUnitA);
CurrentUserService currentUserService = new MockCurrentUserService(user);
this.organisationUnitService = new DefaultOrganisationUnitService(organisationUnitStore, dataSetService, organisationUnitLevelStore, currentUserService, configurationService, userSettingService, cacheProvider);
organisationUnitService.addOrganisationUnit(orgUnitA);
identifiableObjectManager.save(orgUnitA);
queryParser = new DefaultJpaQueryParser(schemaService);
}
Aggregations