JAL-2344 correct roundtrip test to exclude Jalview project format
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 25 Nov 2016 09:01:23 +0000 (09:01 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 25 Nov 2016 09:01:23 +0000 (09:01 +0000)
test/jalview/io/FormatAdapterTest.java

index 6bf954a..a7c2bf9 100644 (file)
@@ -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<FileFormatI> both = new ArrayList<FileFormatI>();
     for (FileFormat format : FileFormat.values())
     {
-      if (format.isReadable() && format.isWritable())
+      if (format.isReadable() && format.isWritable()
+              && format.isTextFormat())
       {
         both.add(format);
       }