Search in sources :

Example 6 with CustomOutputFieldsDeclarer

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));
}
Also used : Fields(org.apache.storm.tuple.Fields) CustomOutputFieldsDeclarer(com.yahoo.bullet.storm.testing.CustomOutputFieldsDeclarer) Test(org.testng.annotations.Test)

Aggregations

CustomOutputFieldsDeclarer (com.yahoo.bullet.storm.testing.CustomOutputFieldsDeclarer)6 Test (org.testng.annotations.Test)6 Fields (org.apache.storm.tuple.Fields)4 CountDistinctTest (com.yahoo.bullet.aggregations.CountDistinctTest)2 DistributionTest (com.yahoo.bullet.aggregations.DistributionTest)2 TopKTest (com.yahoo.bullet.aggregations.TopKTest)2 GroupByTest (com.yahoo.bullet.aggregations.GroupByTest)1