public void testIsSpooled() throws IOException { SwapFile sf = SwapFile.get(new File(DIR_NAME), FILE_NAME); assertFalse("Spool is not over.", sf.isSpooled()); sf.spoolDone(); assertTrue("Spool is over.", sf.isSpooled()); sf.delete(); }
public void testSpoolDone() throws IOException { SwapFile sf = SwapFile.get(new File(DIR_NAME), FILE_NAME); sf.spoolDone(); assertTrue("Spool should be done.", sf.isSpooled()); sf.delete(); }