@Test public void testGetComponentConfiguration() { IRichBolt boltMock = mock(IRichBolt.class); InputDebatcher bolt = new InputDebatcher(boltMock); final Map<String, Object> conf = new HashMap<String, Object>(); when(bolt.getComponentConfiguration()).thenReturn(conf); Map<String, Object> result = bolt.getComponentConfiguration(); verify(boltMock).getComponentConfiguration(); Assert.assertSame(result, conf); }
@Override public Map<String, Object> getComponentConfiguration() { return this.wrappedBolt.getComponentConfiguration(); }
InputDebatcher implements IRichBolt { @Override public Map<String, Object> getComponentConfiguration() { return this.wrappedBolt.getComponentConfiguration(); } }
InputDebatcher implements IRichBolt { @Override public Map<String, Object> getComponentConfiguration() { return this.wrappedBolt.getComponentConfiguration(); } InputDebatcher(IRichBolt bolt); }
InputDebatcher implements IRichBolt { @Override public Map<String, Object> getComponentConfiguration() { return this.wrappedBolt.getComponentConfiguration(); } 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 Map<String, Object> getComponentConfiguration() { return this.wrappedBolt.getComponentConfiguration(); } 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);  }