Reputation: 801
I need to create a Message for unit-testing. How to create Message in Vertx?
Upvotes: 0
Views: 490
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