use of org.hisp.dhis.smscompression.models.SmsAttributeValue in project dhis2-core by dhis2.
the class EnrollmentSMSListenerTest method createEnrollmentSubmissionNoEvents.
private EnrollmentSmsSubmission createEnrollmentSubmissionNoEvents() {
EnrollmentSmsSubmission subm = new EnrollmentSmsSubmission();
subm.setUserId(user.getUid());
subm.setOrgUnit(organisationUnit.getUid());
subm.setTrackerProgram(program.getUid());
subm.setTrackedEntityType(trackedEntityType.getUid());
subm.setTrackedEntityInstance(trackedEntityInstance.getUid());
subm.setEnrollment(programInstance.getUid());
subm.setEnrollmentDate(new Date());
subm.setIncidentDate(new Date());
subm.setEnrollmentStatus(SmsEnrollmentStatus.ACTIVE);
subm.setCoordinates(new GeoPoint(59.9399586f, 10.7195609f));
ArrayList<SmsAttributeValue> values = new ArrayList<>();
values.add(new SmsAttributeValue(trackedEntityAttribute.getUid(), ATTRIBUTE_VALUE));
subm.setValues(values);
subm.setSubmissionId(1);
return subm;
}
Aggregations