JAL-3438 spotless for 2.11.2.0
[jalview.git] / test / jalview / io / NewickFileTests.java
index a92f5fb..beedb11 100644 (file)
@@ -63,18 +63,17 @@ public class NewickFileTests
   @Parameters
   public static Collection data()
   {
-    return Arrays
-            .asList(new Object[][] {
-
-                new String[] {
-                    "Simple uniref50 newick",
-                    "(((FER_BRANA:128.0,FER3_RAPSA:128.0):50.75,FER_CAPAA:178.75):121.94443,(Q93Z60_ARATH:271.45456,((O80429_MAIZE:183.0,FER1_MAIZE:183.0):30.5,((Q7XA98_TRIPR:90.0,FER1_PEA:90.0):83.32143,(((FER2_ARATH:64.0,FER1_ARATH:64.0):94.375,(FER1_SPIOL:124.5,FER1_MESCR:124.5):33.875):6.4166718,((Q93XJ9_SOLTU:33.5,FER1_SOLLC:33.5):49.0,FER_CAPAN:82.5):82.29167):8.529755):40.178574):57.95456):29.239868);" },
-                new String[] {
-                    "Tree with quotes",
-                    "('Syn_PROSU-1_IIh_3d(CA4)|CK_Syn_PROSU-1_1907':1.0638313,'Syn_MINOS11_5.3_3d(CA4)|CK_Syn_MINOS11_750':1.063831);" },
-                new String[] {
-                    "Tree with double escaped comma in node",
-                    "('Syn_PROSU-1_IIh_3d(CA4)|CK_Syn_PROSU-1_1907':1.0638313,'Syn_MINOS11_5.3_3d(CA4)''|CK_Syn_MINOS11_750':1.063831);" } });
+    return Arrays.asList(new Object[][] {
+
+        new String[]
+        { "Simple uniref50 newick",
+            "(((FER_BRANA:128.0,FER3_RAPSA:128.0):50.75,FER_CAPAA:178.75):121.94443,(Q93Z60_ARATH:271.45456,((O80429_MAIZE:183.0,FER1_MAIZE:183.0):30.5,((Q7XA98_TRIPR:90.0,FER1_PEA:90.0):83.32143,(((FER2_ARATH:64.0,FER1_ARATH:64.0):94.375,(FER1_SPIOL:124.5,FER1_MESCR:124.5):33.875):6.4166718,((Q93XJ9_SOLTU:33.5,FER1_SOLLC:33.5):49.0,FER_CAPAN:82.5):82.29167):8.529755):40.178574):57.95456):29.239868);" },
+        new String[]
+        { "Tree with quotes",
+            "('Syn_PROSU-1_IIh_3d(CA4)|CK_Syn_PROSU-1_1907':1.0638313,'Syn_MINOS11_5.3_3d(CA4)|CK_Syn_MINOS11_750':1.063831);" },
+        new String[]
+        { "Tree with double escaped comma in node",
+            "('Syn_PROSU-1_IIh_3d(CA4)|CK_Syn_PROSU-1_1907':1.0638313,'Syn_MINOS11_5.3_3d(CA4)''|CK_Syn_MINOS11_750':1.063831);" } });
   };
 
   String name, testTree;
@@ -125,8 +124,8 @@ public class NewickFileTests
       stage = "Compare original and generated tree" + treename;
 
       Vector<SequenceNode> oseqs, nseqs;
-      oseqs = new TreeModel(new SequenceI[0], null, nf).findLeaves(nf
-              .getTree());
+      oseqs = new TreeModel(new SequenceI[0], null, nf)
+              .findLeaves(nf.getTree());
       AssertJUnit.assertTrue(stage + "No nodes in original tree.",
               oseqs.size() > 0);
       SequenceI[] olsqs = new SequenceI[oseqs.size()];
@@ -135,8 +134,7 @@ public class NewickFileTests
         olsqs[i] = (SequenceI) oseqs.get(i).element();
       }
       nseqs = new TreeModel(new SequenceI[0], null, nf_regen)
-              .findLeaves(nf_regen
-              .getTree());
+              .findLeaves(nf_regen.getTree());
       AssertJUnit.assertTrue(stage + "No nodes in regerated tree.",
               nseqs.size() > 0);
       SequenceI[] nsqs = new SequenceI[nseqs.size()];
@@ -144,12 +142,12 @@ public class NewickFileTests
       {
         nsqs[i] = (SequenceI) nseqs.get(i).element();
       }
-      AssertJUnit.assertTrue(stage
-              + " Different number of leaves (original " + olsqs.length
-              + " and regen " + nsqs.length + ")",
+      AssertJUnit.assertTrue(
+              stage + " Different number of leaves (original "
+                      + olsqs.length + " and regen " + nsqs.length + ")",
               olsqs.length == nsqs.length);
-      SequenceIdMatcher omatcher = new SequenceIdMatcher(olsqs), nmatcher = new SequenceIdMatcher(
-              nsqs);
+      SequenceIdMatcher omatcher = new SequenceIdMatcher(olsqs),
+              nmatcher = new SequenceIdMatcher(nsqs);
 
       SequenceI[] osmatches = omatcher.findIdMatch(nsqs);
       SequenceI[] nsmatches = nmatcher.findIdMatch(olsqs);