Search in sources :

Example 1 with TrackedEntityInstanceAggregate

use of org.hisp.dhis.dxf2.events.aggregates.TrackedEntityInstanceAggregate in project dhis2-core by dhis2.

the class TrackerSynchronizationTest method setUpTest.

@Override
public void setUpTest() {
    userService = _userService;
    currentSession = sessionFactory.getCurrentSession();
    User user = createUser("userUID0001");
    currentSession.save(user);
    CurrentUserService currentUserService = new MockCurrentUserService(user);
    subject = new JacksonTrackedEntityInstanceService(teiService, trackedEntityAttributeService, _relationshipService, relationshipService, relationshipTypeService, trackedEntityAttributeValueService, manager, _userService, dbmsManager, enrollmentService, programInstanceService, currentUserService, schemaService, queryService, reservedValueService, trackerAccessManager, fileResourceService, trackerOwnershipAccessManager, trackedEntityInstanceAggregate, trackedEntityAttributeStore, trackedEntityInstanceAuditService, trackedEntityTypeService, notifier, jsonMapper, xmlMapper);
    prepareSyncParams();
    prepareDataForTest();
}
Also used : User(org.hisp.dhis.user.User) MockCurrentUserService(org.hisp.dhis.mock.MockCurrentUserService) MockCurrentUserService(org.hisp.dhis.mock.MockCurrentUserService) CurrentUserService(org.hisp.dhis.user.CurrentUserService) JacksonTrackedEntityInstanceService(org.hisp.dhis.dxf2.events.trackedentity.JacksonTrackedEntityInstanceService)

Aggregations

JacksonTrackedEntityInstanceService (org.hisp.dhis.dxf2.events.trackedentity.JacksonTrackedEntityInstanceService)1 MockCurrentUserService (org.hisp.dhis.mock.MockCurrentUserService)1 CurrentUserService (org.hisp.dhis.user.CurrentUserService)1 User (org.hisp.dhis.user.User)1