git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-2344 correct roundtrip test to exclude Jalview project format
[jalview.git]
/
test
/
jalview
/
io
/
FormatAdapterTest.java
diff --git
a/test/jalview/io/FormatAdapterTest.java
b/test/jalview/io/FormatAdapterTest.java
index
6bf954a
..
a7c2bf9
100644
(file)
--- 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)
{
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
{
/*
* 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
/**
* Data provider that serves alignment formats that are both readable and
- * writable
+ * (text) writable
*
* @return
*/
*
* @return
*/
@@
-106,7
+106,8
@@
public class FormatAdapterTest
List<FileFormatI> both = new ArrayList<FileFormatI>();
for (FileFormat format : FileFormat.values())
{
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);
}
{
both.add(format);
}