LengthBatchWindow extends LengthBasedWindow implements IBatch { public LengthBatchWindow(int keepLength) { super(keepLength); } LengthBatchWindow(int keepLength); @Override void update(IEvent[] newData, IEvent[] oldData); void sendBatchData(); @Override IView renewView();  }
@Test public void testLengthBatchWindow() { try { myView = new LengthBatchWindow(0); fail(); } catch (IllegalArgumentException ex) { assertTrue(true); } }