Citrus 集成测试框架 (Java) 是否像 Junit 中那样支持对象到对象断言?

Does Citrus Framework for Integration testing(Java) supports Object to Object Asserts as in Junit?

我正在为 Web 服务进行 Citrus 集成测试。我需要使用应用程序使用的同一个数据库。我想知道我是否可以在 Citrus 中以对象的形式获得响应,以便我可以在 Assert 中使用该对象。

Citrus 能够自动将消息负载映射到域对象中。您需要在 Citrus 中设置编组器 (Xml) 或对象映射器 (Json)。然后您将能够在发送和接收操作中使用域对象实例。

有关详细信息,请参阅这些样本:

https://github.com/christophd/citrus-samples/tree/master/sample-databind https://github.com/christophd/citrus-samples/tree/master/sample-oxm

希望对您有所帮助