use of org.hisp.dhis.actions.metadata.ProgramActions 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);
}
use of org.hisp.dhis.actions.metadata.ProgramActions in project dhis2-core by dhis2.
the class EventImportValidationTests method beforeAll.
@BeforeAll
public void beforeAll() {
eventActions = new EventActions();
programActions = new ProgramActions();
new LoginActions().loginAsAdmin();
setupData();
}
use of org.hisp.dhis.actions.metadata.ProgramActions in project dhis2-core by dhis2.
the class ProgramRemovalTest method beforeEach.
@BeforeEach
public void beforeEach() throws Exception {
programActions = new ProgramActions();
relationshipTypeActions = new RestApiActions("/relationshipTypes");
new LoginActions().loginAsSuperUser();
setupData();
}
use of org.hisp.dhis.actions.metadata.ProgramActions in project dhis2-core by dhis2.
the class ProgramsTest method beforeAll.
@BeforeAll
public void beforeAll() {
loginActions = new LoginActions();
programActions = new ProgramActions();
}
Aggregations