Testing Storm Bolts and Spouts
问题 This is a general question regarding Unit Testing Bolts and Spouts in a Storm Topology written in Java. What is the recommended practice and guideline for unit-testing (JUnit?) Bolts and Spouts ? For instance, I could write a JUnit test for a Bolt , but without fully understanding the framework (like the lifecycle of a Bolt ) and the Serialization implications, easily make the mistake of Constructor-based creation of non-serializable member variables. In JUnit, this test would pass, but in a