JAL-3026 JAL-3063 patch jalview.project.Jalview2XmlTests with updates in jalview...
authorJim Procter <jprocter@issues.jalview.org>
Tue, 23 Oct 2018 10:06:47 +0000 (11:06 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 23 Oct 2018 10:06:47 +0000 (11:06 +0100)
test/jalview/project/Jalview2xmlTests.java

index f0fc3fd..1443950 100644 (file)
@@ -110,7 +110,8 @@ public class Jalview2xmlTests extends Jalview2xmlBase
     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;
@@ -146,7 +147,8 @@ public class Jalview2xmlTests extends Jalview2xmlBase
             .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;
@@ -191,7 +193,8 @@ public class Jalview2xmlTests extends Jalview2xmlBase
     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;
@@ -966,7 +969,8 @@ public class Jalview2xmlTests extends Jalview2xmlBase
     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.");
 
     /*