From 019a78415854a8c7fbfe0b566174ede7e69f24b8 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 25 Nov 2016 09:01:23 +0000 Subject: [PATCH] JAL-2344 correct roundtrip test to exclude Jalview project format --- test/jalview/io/FormatAdapterTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } -- 1.7.10.2