use of org.hisp.dhis.actions.tracker.importer.TrackerActions in project dhis2-core by dhis2.
the class TrackerNtiApiTest method beforeTrackerNti.
@BeforeAll
public void beforeTrackerNti() {
trackerActions = new TrackerActions();
loginActions = new LoginActions();
programActions = new ProgramActions();
}
use of org.hisp.dhis.actions.tracker.importer.TrackerActions in project dhis2-core by dhis2.
the class PotentialDuplicatesApiTest method beforeEachPotentialDuplicateTest.
@BeforeEach
public void beforeEachPotentialDuplicateTest() {
trackerActions = new TrackerActions();
userActions = new UserActions();
loginActions = new LoginActions();
potentialDuplicatesActions = new PotentialDuplicatesActions();
}
use of org.hisp.dhis.actions.tracker.importer.TrackerActions in project dhis2-core by dhis2.
the class EventExportTests method setupTrackerEvents.
private void setupTrackerEvents() {
Arrays.asList(captureOu, dataReadOu, searchOu, rootOu).forEach(ou -> {
JsonObject object = new TeiDataBuilder().buildWithEnrollmentAndEvent(Constants.TRACKED_ENTITY_TYPE, ou, withRegistrationProgram, withRegistrationProgramStage);
String eventId = new TrackerActions().postAndGetJobReport(object).validateSuccessfulImport().extractImportedEvents().get(0);
trackerEvents.put(ou, eventId);
// closed program events
object = new TeiDataBuilder().buildWithEnrollmentAndEvent(Constants.TRACKED_ENTITY_TYPE, ou, closedProgramId, closedProgramProgramStageId);
eventId = new TrackerActions().postAndGetJobReport(object, new QueryParamsBuilder().add("async", "false")).validateSuccessfulImport().extractImportedEvents().get(0);
closedProgramEvents.put(ou, eventId);
});
}
Aggregations