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-4235 JAL-3599 Try and report Eclipse Product Version for jalviewjsTranspile....
[jalview.git]
/
test
/
jalview
/
io
/
FormatAdapterTest.java
diff --git
a/test/jalview/io/FormatAdapterTest.java
b/test/jalview/io/FormatAdapterTest.java
index
7aa5769
..
8f3ad2f
100644
(file)
--- a/
test/jalview/io/FormatAdapterTest.java
+++ b/
test/jalview/io/FormatAdapterTest.java
@@
-85,15
+85,14
@@
public class FormatAdapterTest
* special case: MSF always uses '.' as gap character
*/
sequenceString = adjustForGapTreatment(sequenceString, gap, format);
* special case: MSF always uses '.' as gap character
*/
sequenceString = adjustForGapTreatment(sequenceString, gap, format);
- assertEquals(
- String.format("Sequence %d: %s", i, seqs[i].getName()),
+ assertEquals(String.format("Sequence %d: %s", i, seqs[i].getName()),
seqs[i].getSequenceAsString(), sequenceString);
i++;
}
} catch (IOException e)
{
seqs[i].getSequenceAsString(), sequenceString);
i++;
}
} catch (IOException e)
{
- fail(String
- .format("Format %s failed with %s", format, e.getMessage()));
+ fail(String.format("Format %s failed with %s", format,
+ e.getMessage()));
}
}
}
}
@@
-132,7
+131,7
@@
public class FormatAdapterTest
static Object[][] getFormats()
{
List<FileFormatI> both = new ArrayList<FileFormatI>();
static Object[][] getFormats()
{
List<FileFormatI> both = new ArrayList<FileFormatI>();
- for (FileFormat format : FileFormat.values())
+ for (FileFormatI format : FileFormats.getInstance().getFormats())
{
if (format.isReadable() && format.isWritable()
&& format.isTextFormat())
{
if (format.isReadable() && format.isWritable()
&& format.isTextFormat())