use of org.hisp.dhis.smscompression.models.SmsDataValue in project dhis2-core by dhis2.
the class AggregateDataSetSMSListenerTest method createAggregateDatasetSubmission.
private AggregateDatasetSmsSubmission createAggregateDatasetSubmission() {
AggregateDatasetSmsSubmission subm = new AggregateDatasetSmsSubmission();
subm.setUserId(user.getUid());
subm.setOrgUnit(organisationUnit.getUid());
subm.setDataSet(dataSet.getUid());
subm.setComplete(true);
subm.setAttributeOptionCombo(categoryOptionCombo.getUid());
subm.setPeriod("2019W16");
ArrayList<SmsDataValue> values = new ArrayList<>();
values.add(new SmsDataValue(categoryOptionCombo.getUid(), dataElement.getUid(), "12345678"));
subm.setValues(values);
subm.setSubmissionId(1);
return subm;
}
Aggregations