Testing Storm Bolts and Spouts

后端 未结 4 1094
天命终不由人
天命终不由人 2020-12-23 00:05

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 un

4条回答
  •  不思量自难忘°
    2020-12-23 00:09

    One approach we have taken is to move most of the application logic out of bolts and spouts and into objects that we use to do the heavy lifting by instantiating and using them via minimal interfaces. Then we do unit testing on those objects and integration testing, although this does leave a gap.

提交回复
热议问题