From: gmungoc Date: Fri, 25 Nov 2016 09:01:23 +0000 (+0000) Subject: JAL-2344 correct roundtrip test to exclude Jalview project format X-Git-Tag: Release_2_10_3b1~406 X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=commitdiff_plain;h=019a78415854a8c7fbfe0b566174ede7e69f24b8 JAL-2344 correct roundtrip test to exclude Jalview project format --- diff --git a/test/jalview/io/FormatAdapterTest.java b/test/jalview/io/FormatAdapterTest.java index 6bf954a..a7c2bf9 100644 --- a/test/jalview/io/FormatAdapterTest.java +++ b/test/jalview/io/FormatAdapterTest.java @@ -83,7 +83,7 @@ public class FormatAdapterTest String adjustForGapTreatment(String sequenceString, char gap, FileFormatI format) { - if (format == FileFormat.MSF) + if (FileFormat.MSF.equals(format)) { /* * MSF forces gap character to '.', so change it back @@ -96,7 +96,7 @@ public class FormatAdapterTest /** * Data provider that serves alignment formats that are both readable and - * writable + * (text) writable * * @return */ @@ -106,7 +106,8 @@ public class FormatAdapterTest List both = new ArrayList(); for (FileFormat format : FileFormat.values()) { - if (format.isReadable() && format.isWritable()) + if (format.isReadable() && format.isWritable() + && format.isTextFormat()) { both.add(format); }