fixed error message
This commit is contained in:
parent
dcdba9e75b
commit
f5598d6d07
@ -156,8 +156,8 @@ public class TbRabbitMqNode extends TbAbstractExternalNode {
|
|||||||
case "PERSISTENT_TEXT_PLAIN":
|
case "PERSISTENT_TEXT_PLAIN":
|
||||||
return MessageProperties.PERSISTENT_TEXT_PLAIN;
|
return MessageProperties.PERSISTENT_TEXT_PLAIN;
|
||||||
default:
|
default:
|
||||||
throw new TbNodeException("Undefined message properties '" + name +
|
throw new TbNodeException("Undefined message properties type '" + name +
|
||||||
"'! Only " + supportedPropertiesStr + " message properties are supported!");
|
"'! Only " + supportedPropertiesStr + " message properties types are supported!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -241,7 +241,7 @@ public class TbRabbitMqNodeTest {
|
|||||||
assertThatThrownBy(() -> TbRabbitMqNode.convert(name))
|
assertThatThrownBy(() -> TbRabbitMqNode.convert(name))
|
||||||
.isInstanceOf(TbNodeException.class)
|
.isInstanceOf(TbNodeException.class)
|
||||||
.hasMessage("Undefined message properties type '" + name +
|
.hasMessage("Undefined message properties type '" + name +
|
||||||
"'! Only " + supportedPropertiesStr + " message properties are supported!");
|
"'! Only " + supportedPropertiesStr + " message properties types are supported!");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user