Browse Source
Adapt notification rule test to recipients config factory
pull/16844/head
Viacheslav Klimov
4 weeks ago
Failed to extract signature
1 changed files with
1 additions and
2 deletions
-
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); |
|
|
|
|
|
|
|
|