@AfterClass public void close() throws IOException { bimfd.close(); famfd.close(); pedfd.close(); mapfd.close(); tpedfd.close(); }
@Test public void TPED_writer() throws Exception { File newTped = new File(testTped.getAbsolutePath().replace(testTped.getName(), "new.tped")); TpedFileWriter w = new TpedFileWriter(newTped); try { w.writeAll(tpedfd.getAllEntries()); boolean filesAreEqual = DirectoryCompare.compareFileContent(testTped, newTped); assertTrue(filesAreEqual); } finally { w.close(); } }