import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
+import jalview.bin.Cache;
import jalview.datamodel.AlignmentI;
import jalview.gui.AlignFrame;
import jalview.gui.JvOptionPane;
@Test(groups = { "Functional" })
public void loadAndSaveAlignment() throws IOException
{
+ Cache.initLogger();
File file = new File(fileName);
File testFile = new File(testFileName);
Files.copy(file.toPath(), testFile.toPath(),
StandardCopyOption.REPLACE_EXISTING);
FormatAdapter fa = new FormatAdapter();
- AlignmentI a = fa.readFile(testFile, DataSourceType.FILE,
+ AlignmentI a = fa.readFile(fileName, DataSourceType.FILE,
FileFormat.Fasta);
AlignFrame af = new AlignFrame(a, 500, 500);
- af.saveAlignment(testFileName, FileFormat.Fasta);
-
- Assert.assertTrue(af.isSaveAlignmentSuccessful());
+ Assert.assertTrue(af.saveAlignment(testFileName, FileFormat.Fasta));
}
@AfterClass(alwaysRun = true)