den123
den123

Reputation: 801

Vertx: how to create Message for unit-testing?

I need to create a Message for unit-testing. How to create Message in Vertx?

Upvotes: 0

Views: 490

Answers (1)

tsegismont
tsegismont

Reputation: 9138

You can mock the Message with your favorite mocking library. But in general, Vert.x users simply start a Vert.x instance for testing, since it's small and embeddable. Then you no longer mock but register test consumers and publishers.

Upvotes: 2

Related Questions