use of org.hisp.dhis.sms.command.SMSCommand in project dhis2-core by dhis2.
the class SmsUtilsTest method setup.
@BeforeEach
void setup() {
phoneNumber = "0123456789";
email = "test@example.com";
userA = new User();
userA.setAutoFields();
userA.setPhoneNumber(phoneNumber);
userA.setEmail(email);
organisationUnitA = new OrganisationUnit();
organisationUnitA.setAutoFields();
organisationUnitA.setId(1);
organisationUnitA.setCode("TESTORGA");
userA.addOrganisationUnit(organisationUnitA);
userB = new User();
organisationUnitB = new OrganisationUnit();
organisationUnitB.setAutoFields();
organisationUnitB.setId(2);
organisationUnitB.setCode("TESTORGB");
userB.addOrganisationUnit(organisationUnitB);
organisationUnitC = new OrganisationUnit();
organisationUnitC.setAutoFields();
organisationUnitC.setId(3);
organisationUnitC.setCode("TESTORGC");
incomingSms = new IncomingSms();
incomingSms.setCreatedBy(userA);
keyValueCommand = new SMSCommand();
keyValueCommand.setParserType(ParserType.KEY_VALUE_PARSER);
}
Aggregations