use of org.hisp.dhis.actions.metadata.SharingActions in project dhis2-core by dhis2.
the class MetadataPatchTests method before.
@BeforeAll
public void before() {
dataElementActions = new DataElementActions();
loginActions = new LoginActions();
dataElementGroupActions = new RestApiActions("/dataElementGroups");
sharingActions = new SharingActions();
loginActions.loginAsAdmin();
dataElementId = dataElementActions.create(dataElementActions.body("SUM", "AGGREGATE", "TEXT"));
dataElementGroupId = dataElementGroupActions.create(new JsonObjectBuilder().addProperty("name", DataGenerator.randomString()).addArray("dataElements", new JsonObjectBuilder().addProperty("id", dataElementId).build()).build());
}
use of org.hisp.dhis.actions.metadata.SharingActions in project dhis2-core by dhis2.
the class EventsDataValueValidationTests method beforeAll.
@BeforeAll
public void beforeAll() {
programActions = new ProgramActions();
sharingActions = new SharingActions();
dataElementActions = new DataElementActions();
loginActions.loginAsSuperUser();
setupData();
}
Aggregations