@Test public void testDeclareOutputFields() { IRichBolt boltMock = mock(IRichBolt.class); InputDebatcher bolt = new InputDebatcher(boltMock); OutputFieldsDeclarer declarer = mock(OutputFieldsDeclarer.class); bolt.declareOutputFields(declarer); verify(boltMock).declareOutputFields(declarer); }
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { this.wrappedBolt.declareOutputFields(declarer); }
InputDebatcher implements IRichBolt { @Override public void declareOutputFields(OutputFieldsDeclarer declarer) { this.wrappedBolt.declareOutputFields(declarer); } }
InputDebatcher implements IRichBolt { @Override public void declareOutputFields(OutputFieldsDeclarer declarer) { this.wrappedBolt.declareOutputFields(declarer); } InputDebatcher(IRichBolt bolt); }
InputDebatcher implements IRichBolt { @Override public void declareOutputFields(OutputFieldsDeclarer declarer) { this.wrappedBolt.declareOutputFields(declarer); } InputDebatcher(IRichBolt bolt); @Override void prepare(@SuppressWarnings("rawtypes") Map stormConf, TopologyContext context, OutputCollector collector); @Override void execute(Tuple input); @Override void cleanup(); @Override void declareOutputFields(OutputFieldsDeclarer declarer); @Override Map<String, Object> getComponentConfiguration(); static void registerKryoClasses(Config stormConfig); }
InputDebatcher implements IRichBolt { @Override public void declareOutputFields(OutputFieldsDeclarer declarer) { this.wrappedBolt.declareOutputFields(declarer); } InputDebatcher(IRichBolt bolt); @Override void prepare(@SuppressWarnings("rawtypes") Map stormConf, TopologyContext context, OutputCollector collector); @Override void execute(Tuple input); @Override void cleanup(); @Override void declareOutputFields(OutputFieldsDeclarer declarer); @Override Map<String, Object> getComponentConfiguration(); static void registerKryoClasses(Config stormConfig);  }