int length = this.recDir.listFiles().length;
assertEquals(1,length);
this.readController.initialize();
try{
this.readController.recoverEntries(new StorageModifierStub(null,null,null,0,0));
}catch (Exception e) {
fail("unexpected exception"+e.getMessage());
}
this.readController.destroy();
assertEquals(1,this.recDir.listFiles().length);
createCorruptedFile();
this.readController.initialize();
try{
this.readController.recoverEntries(new StorageModifierStub(null,null,null,0,0));
}catch (Exception e) {
fail("unexpected exception"+e.getMessage());
}
this.readController.destroy();
assertEquals(2,this.recDir.listFiles().length);