Browse Source

added additional validation to ActionTypeTest and TbMsgTypeTest

pull/8786/head
ShvaykaD 3 years ago
parent
commit
9d20fa7d9e
  1. 2
      common/data/src/test/java/org/thingsboard/server/common/data/audit/ActionTypeTest.java
  2. 2
      common/data/src/test/java/org/thingsboard/server/common/data/msg/TbMsgTypeTest.java

2
common/data/src/test/java/org/thingsboard/server/common/data/audit/ActionTypeTest.java

@ -56,6 +56,8 @@ class ActionTypeTest {
for (var type : types) { for (var type : types) {
if (typesWithNullRuleEngineMsgType.contains(type)) { if (typesWithNullRuleEngineMsgType.contains(type)) {
assertThat(type.getRuleEngineMsgType()).isEmpty(); assertThat(type.getRuleEngineMsgType()).isEmpty();
} else {
assertThat(type.getRuleEngineMsgType()).isPresent();
} }
} }
} }

2
common/data/src/test/java/org/thingsboard/server/common/data/msg/TbMsgTypeTest.java

@ -62,6 +62,8 @@ class TbMsgTypeTest {
for (var type : tbMsgTypes) { for (var type : tbMsgTypes) {
if (typesWithNullRuleNodeConnection.contains(type)) { if (typesWithNullRuleNodeConnection.contains(type)) {
assertThat(type.getRuleNodeConnection()).isNull(); assertThat(type.getRuleNodeConnection()).isNull();
} else {
assertThat(type.getRuleNodeConnection()).isNotNull();
} }
} }
} }

Loading…
Cancel
Save