use of org.apache.apex.malhar.lib.testbench.CountOccurance in project apex-malhar by apache.
the class CountOccuranceTest method testProcess.
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testProcess() {
CountOccurance oper = new CountOccurance();
oper.setup(null);
CollectorTestSink sink = new CollectorTestSink();
oper.outport.setSink(sink);
oper.beginWindow(1);
oper.inport.process("a");
oper.inport.process("b");
oper.endWindow();
Assert.assertEquals("number emitted tuples", 1, sink.collectedTuples.size());
}
Aggregations