JdbcBatchingDataCaptureService extends JdbcIteratingDataCaptureServiceImpl { int batchWindow() { return NumberUtils.toIntDefaultIfNull(getBatchWindow(), DEFAULT_BATCH_WINDOW); } JdbcBatchingDataCaptureService();  JdbcBatchingDataCaptureService(String statement); Integer getBatchWindow(); void setBatchWindow(Integer i); static final int DEFAULT_BATCH_WINDOW; }
@Test public void testBatchWindow() { JdbcBatchingDataCaptureService service = new JdbcBatchingDataCaptureService(); assertNull(service.getBatchWindow()); assertEquals(JdbcBatchingDataCaptureService.DEFAULT_BATCH_WINDOW, service.batchWindow()); service.setBatchWindow(10); assertEquals(Integer.valueOf(10), service.getBatchWindow()); assertEquals(10, service.batchWindow()); service.setBatchWindow(null); assertNull(service.getBatchWindow()); assertEquals(JdbcBatchingDataCaptureService.DEFAULT_BATCH_WINDOW, service.batchWindow()); }