Browse Source

Adapt notification rule test to recipients config factory

pull/16844/head
Viacheslav Klimov 4 weeks ago
parent
commit
d2e785184b
Failed to extract signature
  1. 3
      application/src/test/java/org/thingsboard/server/service/notification/NotificationTemplateApiTest.java

3
application/src/test/java/org/thingsboard/server/service/notification/NotificationTemplateApiTest.java

@ -144,8 +144,7 @@ public class NotificationTemplateApiTest extends AbstractNotificationApiTest {
rule.setTemplateId(storedTemplate.getId());
rule.setTriggerType(triggerConfig.getTriggerType());
rule.setTriggerConfig(triggerConfig);
DefaultNotificationRuleRecipientsConfig recipientsConfig = new DefaultNotificationRuleRecipientsConfig();
recipientsConfig.setTriggerType(triggerConfig.getTriggerType());
DefaultNotificationRuleRecipientsConfig recipientsConfig = DefaultNotificationRuleRecipientsConfig.forTriggerType(triggerConfig.getTriggerType());
recipientsConfig.setTargets(List.of(createNotificationTarget(tenantAdminUserId).getUuidId()));
rule.setRecipientsConfig(recipientsConfig);

Loading…
Cancel
Save