private void runAssertionFireAndForgetInsertUpdateDelete(Object[][] expectedType) { EPOnDemandQueryResult result = epService.getEPRuntime().executeQuery("insert into MyTable(key) values ('dummy')"); assertEventType(result.getEventType(), expectedType); result = epService.getEPRuntime().executeQuery("delete from MyTable where key = 'dummy'"); assertEventType(result.getEventType(), expectedType); result = epService.getEPRuntime().executeQuery("update MyTable set key='dummy' where key='dummy'"); assertEventType(result.getEventType(), expectedType); }
private void runAssertionFireAndForgetSelectStar(Object[][] expectedType, Object[] rowValues) { EPOnDemandQueryResult result = epService.getEPRuntime().executeQuery("select * from MyTable where key = 'G1'"); assertEventTypeAndEvent( result.getEventType(), expectedType, result.getArray()[0].getUnderlying(), rowValues); }