JAL-3978 clean up unnecessary local variables for JALVIEW_VERSION_UNDERSCORES
[jalview.git] / test / jalview / io / FormatAdapterTest.java
index 7aa5769..8f3ad2f 100644 (file)
@@ -85,15 +85,14 @@ public class FormatAdapterTest
          * 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)
     {
-      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>();
-    for (FileFormat format : FileFormat.values())
+    for (FileFormatI format : FileFormats.getInstance().getFormats())
     {
       if (format.isReadable() && format.isWritable()
               && format.isTextFormat())