Search in sources :

Example 1 with RelationshipTypeActions

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);
}
Also used : ProgramActions(org.hisp.dhis.actions.metadata.ProgramActions) UserActions(org.hisp.dhis.actions.UserActions) LoginActions(org.hisp.dhis.actions.LoginActions) Matchers.containsString(org.hamcrest.Matchers.containsString) RelationshipTypeActions(org.hisp.dhis.actions.metadata.RelationshipTypeActions) EventActions(org.hisp.dhis.actions.tracker.EventActions) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

Matchers.containsString (org.hamcrest.Matchers.containsString)1 LoginActions (org.hisp.dhis.actions.LoginActions)1 UserActions (org.hisp.dhis.actions.UserActions)1 ProgramActions (org.hisp.dhis.actions.metadata.ProgramActions)1 RelationshipTypeActions (org.hisp.dhis.actions.metadata.RelationshipTypeActions)1 EventActions (org.hisp.dhis.actions.tracker.EventActions)1 BeforeAll (org.junit.jupiter.api.BeforeAll)1