BedReader { public static void stream(final Readable readable, final BedListener listener) throws IOException { checkNotNull(readable); checkNotNull(listener); BedLineProcessor lineProcessor = new BedLineProcessor(listener); CharStreams.readLines(readable, lineProcessor); } private  BedReader(); static Iterable<BedRecord> read(final Readable readable); static void stream(final Readable readable, final BedListener listener);  }
@Test(expected=NullPointerException.class) public void testStreamNullReadable() throws Exception { stream(null, new BedListener() { @Override public boolean record(final BedRecord record) { return true; } }); }
@Test(expected=NullPointerException.class) public void testStreamNullListener() throws Exception { stream(readable, null); }
@Test public void testStream() throws Exception { stream(readable, new BedListener() { @Override public boolean record(final BedRecord record) { assertNotNull(record); return true; } }); }