BatchLineReader { public void close() throws IOException { reader.close(); } BatchLineReader(final InputStream reader);  BatchLineReader(final InputStream reader, final int bufferSize); void close(); List<String> toList(); List<Line> toLineList(); static final String BOUNDARY; static final String DOUBLE_DASH; static final String CRLF; }
@Test(expected = IllegalArgumentException.class) public void failBufferSizeZero() throws Exception { BatchLineReader reader = create(TEXT_EMPTY, 0); reader.close(); }
@Test(expected = IllegalArgumentException.class) public void failBufferSizeNegative() throws Exception { BatchLineReader reader = create(TEXT_EMPTY, -1); reader.close(); }