use of com.yahoo.bullet.storm.testing.CustomOutputFieldsDeclarer in project bullet-storm by yahoo.
the class TickSpoutTest method testDeclaredOutputFields.
@Test
public void testDeclaredOutputFields() {
CustomOutputFieldsDeclarer declarer = new CustomOutputFieldsDeclarer();
spout.declareOutputFields(declarer);
Fields expected = new Fields(TopologyConstants.ID_FIELD, TopologyConstants.TICK_FIELD);
Assert.assertTrue(declarer.areFieldsPresent(TopologyConstants.TICK_STREAM, false, expected));
}
Aggregations