use of org.hisp.dhis.actions.tracker.EventActions in project dhis2-core by dhis2.
the class EventImportIdSchemeTests method beforeAll.
@BeforeAll
public void beforeAll() {
orgUnitActions = new OrgUnitActions();
eventActions = new EventActions();
programActions = new ProgramActions();
attributeActions = new AttributeActions();
new LoginActions().loginAsSuperUser();
setupData();
}
use of org.hisp.dhis.actions.tracker.EventActions in project dhis2-core by dhis2.
the class UserAssignmentTests method beforeAll.
@BeforeAll
public void beforeAll() {
metadataActions = new MetadataActions();
programActions = new ProgramActions();
eventActions = new EventActions();
loginActions = new LoginActions();
loginActions.loginAsSuperUser();
metadataActions.importAndValidateMetadata(new File("src/test/resources/tracker/eventProgram.json"));
}
use of org.hisp.dhis.actions.tracker.EventActions in project dhis2-core by dhis2.
the class TEIimportTest method before.
@BeforeAll
public void before() throws Exception {
teiActions = new TEIActions();
eventActions = new EventActions();
enrollmentActions = new RestApiActions("/enrollments");
new LoginActions().loginAsSuperUser();
object = new FileReaderUtils().read(new File("src/test/resources/tracker/teis/teisWithEventsAndEnrollments.json")).get(JsonObject.class);
teiActions.post(object).validate().statusCode(200);
}
use of org.hisp.dhis.actions.tracker.EventActions in project dhis2-core by dhis2.
the class EventValidationTests method beforeAll.
@BeforeAll
public void beforeAll() {
programActions = new ProgramActions();
eventActions = new EventActions();
loginActions.loginAsSuperUser();
setupData();
}
use of org.hisp.dhis.actions.tracker.EventActions in project dhis2-core by dhis2.
the class RelationshipsTest method before.
@BeforeAll
public void before() throws Exception {
relationshipActions = new RelationshipActions();
trackedEntityInstanceActions = new RestApiActions("/trackedEntityInstances");
metadataActions = new MetadataActions();
eventActions = new EventActions();
new LoginActions().loginAsSuperUser();
metadataActions.importAndValidateMetadata(new File("src/test/resources/tracker/relationshipTypes.json"));
JsonObject teiObject = new FileReaderUtils().read(new File("src/test/resources/tracker/teis/teis.json")).replacePropertyValuesWithIds("trackedEntityInstance").get(JsonObject.class);
teis = trackedEntityInstanceActions.post(teiObject).extractUids();
JsonObject eventObject = new FileReaderUtils().read(new File("src/test/resources/tracker/events/events.json")).replacePropertyValuesWithIds("event").get(JsonObject.class);
ApiResponse response = eventActions.post(eventObject).validateStatus(200);
events = response.extractUids();
}
Aggregations