fixed error message

This commit is contained in:
IrynaMatveieva 2024-08-09 09:36:50 +03:00
parent dcdba9e75b
commit f5598d6d07
2 changed files with 3 additions and 3 deletions

View File

@ -156,8 +156,8 @@ public class TbRabbitMqNode extends TbAbstractExternalNode {
case "PERSISTENT_TEXT_PLAIN":
return MessageProperties.PERSISTENT_TEXT_PLAIN;
default:
throw new TbNodeException("Undefined message properties '" + name +
"'! Only " + supportedPropertiesStr + " message properties are supported!");
throw new TbNodeException("Undefined message properties type '" + name +
"'! Only " + supportedPropertiesStr + " message properties types are supported!");
}
}
}

View File

@ -241,7 +241,7 @@ public class TbRabbitMqNodeTest {
assertThatThrownBy(() -> TbRabbitMqNode.convert(name))
.isInstanceOf(TbNodeException.class)
.hasMessage("Undefined message properties type '" + name +
"'! Only " + supportedPropertiesStr + " message properties are supported!");
"'! Only " + supportedPropertiesStr + " message properties types are supported!");
}
@Test