added additional validation to ActionTypeTest and TbMsgTypeTest

This commit is contained in:
ShvaykaD 2023-07-21 16:12:34 +03:00
parent 9c9cac9bd1
commit 9d20fa7d9e
2 changed files with 4 additions and 0 deletions

View File

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

View File

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