Search in sources :

Example 16 with ProgramActions

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);
}
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)

Example 17 with ProgramActions

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

Example 18 with ProgramActions

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();
}
Also used : RestApiActions(org.hisp.dhis.actions.RestApiActions) ProgramActions(org.hisp.dhis.actions.metadata.ProgramActions) LoginActions(org.hisp.dhis.actions.LoginActions) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 19 with ProgramActions

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();
}
Also used : ProgramActions(org.hisp.dhis.actions.metadata.ProgramActions) LoginActions(org.hisp.dhis.actions.LoginActions) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

ProgramActions (org.hisp.dhis.actions.metadata.ProgramActions)19 BeforeAll (org.junit.jupiter.api.BeforeAll)14 LoginActions (org.hisp.dhis.actions.LoginActions)9 EventActions (org.hisp.dhis.actions.tracker.EventActions)6 TrackedEntityAttributeActions (org.hisp.dhis.actions.metadata.TrackedEntityAttributeActions)3 QueryParamsBuilder (org.hisp.dhis.helpers.QueryParamsBuilder)3 BeforeEach (org.junit.jupiter.api.BeforeEach)3 JsonObject (com.google.gson.JsonObject)2 File (java.io.File)2 UserActions (org.hisp.dhis.actions.UserActions)2 AttributeActions (org.hisp.dhis.actions.metadata.AttributeActions)2 DataElementActions (org.hisp.dhis.actions.metadata.DataElementActions)2 MetadataActions (org.hisp.dhis.actions.metadata.MetadataActions)2 OrgUnitActions (org.hisp.dhis.actions.metadata.OrgUnitActions)2 Matchers.containsString (org.hamcrest.Matchers.containsString)1 RestApiActions (org.hisp.dhis.actions.RestApiActions)1 AnalyticsEnrollmentsActions (org.hisp.dhis.actions.analytics.AnalyticsEnrollmentsActions)1 AnalyticsEventActions (org.hisp.dhis.actions.analytics.AnalyticsEventActions)1 RelationshipTypeActions (org.hisp.dhis.actions.metadata.RelationshipTypeActions)1 SharingActions (org.hisp.dhis.actions.metadata.SharingActions)1