use of org.hisp.dhis.sms.config.BulkSmsGatewayConfig in project dhis2-core by dhis2.
the class BulkSmsGatewayTest method initTest.
@BeforeEach
public void initTest() {
smsGatewayConfig = new BulkSmsGatewayConfig();
smsGatewayConfig.setDefault(true);
smsGatewayConfig.setUsername("username");
smsGatewayConfig.setPassword("password");
recipients.add(PHONE_NUMBER);
outboundMessageList.add(new OutboundMessage(SUBJECT, MESSAGE, recipients));
outboundMessageList.add(new OutboundMessage(SUBJECT, MESSAGE, recipients));
outboundMessageList.add(new OutboundMessage(SUBJECT, MESSAGE, recipients));
batch = new OutboundMessageBatch(outboundMessageList, DeliveryChannel.SMS);
when(pbeStringEncryptor.decrypt(anyString())).thenReturn(smsGatewayConfig.getPassword());
}
Aggregations