@@ -0,0 +1,1093 @@
+package edu.umass.ciir.galagotools.utils.io;%0A%0Aimport edu.umass.ciir.galagotools.utils.IO;%0Aimport org.junit.Test;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.StringReader;%0A%0Aimport static junit.framework.TestCase.assertNull;%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotNull;%0A%0Apublic class PeekLineReaderTest %7B%0A%0A  @Test%0A  public void testPeekLines() throws IOException %7B%0A    String inputTest = %221%5Cn2%5Cn3%5Cn4%22;%0A    PeekLineReader plr = new PeekLineReader(new BufferedReader(new StringReader(inputTest)));%0A    assertEquals(%221%22, plr.peek());%0A    assertEquals(%221%22, plr.peek());%0A    assertEquals(%221%22, plr.peek());%0A%0A    assertEquals(%221%22, plr.next());%0A    assertEquals(%222%22, plr.peek());%0A    assertEquals(%222%22, plr.next());%0A%0A    assertEquals(%223%22, plr.next());%0A    assertEquals(%224%22, plr.peek());%0A    assertEquals(%224%22, plr.peek());%0A    assertNotNull(plr.peek());%0A%0A    assertEquals(%224%22, plr.next());%0A    assertNull(plr.peek());%0A    assertNull(plr.next());%0A    assertNull(plr.peek());%0A    assertNull(plr.next());%0A%0A    IO.close(plr);%0A  %7D%0A%0A%7D

Test coverage++