git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
781218e
)
JAL-2344 correct roundtrip test to exclude Jalview project format
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Fri, 25 Nov 2016 09:01:23 +0000
(09:01 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Fri, 25 Nov 2016 09:01:23 +0000
(09:01 +0000)
test/jalview/io/FormatAdapterTest.java
patch
|
blob
|
history
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);
}