Hello!
Set RabbitMQUtils as transient field in order to get rid of serialization
error. See if you can mock (Mockito using) your RabbitMQ utils and inject
it via setMQ.
Hope that these help.
Regards,
Florin
On Tue, Jan 19, 2016 at 7:16 PM, Noppanit Charassinvichai <
noppani...@gmail.com>
I'm trying to unit test my Bolt which has dependency to RabbitMQ.
This is what I put in my prepare method.
@Override
public void prepare(Map map, TopologyContext topologyContext,
OutputCollector outputCollector) {
this.outputCollector = outputCollector;
this.gson = new