LineCountSplitter extends MessageSplitterImp { public void setBufferSize(Integer b) { this.bufferSize = b; } LineCountSplitter();  LineCountSplitter(Integer splitOnLine); @Override CloseableIterable<AdaptrisMessage> splitMessage(final AdaptrisMessage msg); void setSplitOnLine(Integer i); Integer getSplitOnLine(); void setIgnoreBlankLines(Boolean b); Boolean getIgnoreBlankLines(); Integer getBufferSize(); void setBufferSize(Integer b); Integer getKeepHeaderLines(); void setKeepHeaderLines(Integer keepHeaderLines);  }
@Test public void testSetBufferSize() { LineCountSplitter s = new LineCountSplitter(); assertNull(s.getBufferSize()); assertEquals(8192, s.bufferSize()); s.setBufferSize(1024); assertEquals(Integer.valueOf(1024), s.getBufferSize()); assertEquals(1024, s.bufferSize()); s.setBufferSize(null); assertNull(s.getBufferSize()); assertEquals(8192, s.bufferSize()); }