Пример #1
0
 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();
 }
Пример #2
0
 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();
 }