use of org.hisp.dhis.actions.metadata.RelationshipTypeActions in project dhis2-core by dhis2.
the class EventExportTests method beforeAll.
@BeforeAll
public void beforeAll() {
userActions = new UserActions();
eventActions = new EventActions();
loginActions = new LoginActions();
programActions = new ProgramActions();
loginActions.loginAsSuperUser();
setupUser();
closedProgramId = programActions.createProgramWithAccessLevel("CLOSED", rootOu, captureOu, searchOu, dataReadOu);
closedProgramProgramStageId = programActions.createProgramStage(closedProgramId, "Event export tests" + DataGenerator.randomString());
setupTrackerEvents();
setupEvents();
String relationshipTypeId = new RelationshipTypeActions().createRelationshipType("PROGRAM_STAGE_INSTANCE", withoutRegistrationProgram, "PROGRAM_STAGE_INSTANCE", withRegistrationProgram, true);
relationshipId = createRelationship(events.get(captureOu), trackerEvents.get(captureOu), relationshipTypeId);
}
Aggregations