AlignFrame af = new jalview.io.FileLoader().LoadFileWaitTillLoaded(
inFile, DataSourceType.FILE);
assertTrue("Didn't read input file " + inFile, af != null);
+ af.saveAlignment(tfile, FileFormat.Jalview);
assertTrue("Failed to store as a project.",
- af.saveAlignment(tfile, FileFormat.Jalview));
+ af.isSaveAlignmentSuccessful());
af.closeMenuItem_actionPerformed(true);
af = null;
af = new jalview.io.FileLoader().LoadFileWaitTillLoaded(tfile,
assertTrue(
af.getViewport().getGlobalColourScheme() instanceof RNAHelicesColour,
"Couldn't apply RNA helices colourscheme");
- assertTrue(af.saveAlignment(tfile, FileFormat.Jalview),
+ af.saveAlignment(tfile, FileFormat.Jalview);
+ assertTrue(af.isSaveAlignmentSuccessful(),
"Failed to store as a project.");
af.closeMenuItem_actionPerformed(true);
af = null;
.getAlignment(), af.getViewport().getGlobalColourScheme()
.getSchemeName()), "Recognise T-Coffee score from string");
- assertTrue(af.saveAlignment(tfile, FileFormat.Jalview),
+ af.saveAlignment(tfile, FileFormat.Jalview);
+ assertTrue(af.isSaveAlignmentSuccessful(),
"Failed to store as a project.");
af.closeMenuItem_actionPerformed(true);
af = null;
sg.addSequence(af.getViewport().getAlignment().getSequenceAt(1), false);
sg.addSequence(af.getViewport().getAlignment().getSequenceAt(2), true);
af.alignPanel.alignmentChanged();
- assertTrue(af.saveAlignment(tfile, FileFormat.Jalview),
+ af.saveAlignment(tfile, FileFormat.Jalview);
+ assertTrue(af.isSaveAlignmentSuccessful(),
"Failed to store as a project.");
af.closeMenuItem_actionPerformed(true);
af = null;
File tfile = File.createTempFile("JalviewTest", ".jvp");
tfile.deleteOnExit();
String filePath = tfile.getAbsolutePath();
- assertTrue(af.saveAlignment(filePath, FileFormat.Jalview),
+ af.saveAlignment(filePath, FileFormat.Jalview);
+ assertTrue(af.isSaveAlignmentSuccessful(),
"Failed to store as a project.");
/*