use of org.ballerinalang.siddhi.core.event.stream.StreamEventFactory in project ballerina by ballerina-lang.
the class EventTestCase method testEventCreation.
@Test
public void testEventCreation() {
SiddhiEventFactory siddhiEventFactory = new SiddhiEventFactory(2);
AssertJUnit.assertEquals(2, siddhiEventFactory.newInstance().getData().length);
StreamEventFactory streamEventFactory = new StreamEventFactory(2, 3, 4);
StreamEvent streamEvent = streamEventFactory.newInstance();
AssertJUnit.assertEquals(2, streamEvent.getBeforeWindowData().length);
AssertJUnit.assertEquals(3, streamEvent.getOnAfterWindowData().length);
AssertJUnit.assertEquals(4, streamEvent.getOutputData().length);
}
Aggregations