JAL-1645 source formatting and organise imports
[jalview.git] / test / jalview / structure / Mapping.java
index c057980..aae1f3d 100644 (file)
@@ -27,8 +27,7 @@ public class Mapping
    * 115 in PDB Res Numbering secondary structure numbers in jmol seem to be in
    * msd numbering, not pdb res numbering.
    */
-  @Test(groups =
-  { "Functional" }, enabled = false)
+  @Test(groups = { "Functional" }, enabled = false)
   public void pdbEntryPositionMap() throws Exception
   {
     Assert.fail("This test intentionally left to fail");
@@ -44,15 +43,12 @@ public class Mapping
       // original numbers taken from
       // http://www.ebi.ac.uk/pdbe-srv/view/entry/1qcf/secondary.html
       // these are in numbering relative to the subsequence above
-      int coils[] =
-      { 266, 275, 278, 287, 289, 298, 302, 316 }, helices[] = new int[]
-      { 303, 315 }, sheets[] = new int[]
-      { 267, 268, 269, 270 };
+      int coils[] = { 266, 275, 278, 287, 289, 298, 302, 316 }, helices[] = new int[]
+      { 303, 315 }, sheets[] = new int[] { 267, 268, 269, 270 };
 
       StructureSelectionManager ssm = new jalview.structure.StructureSelectionManager();
-      PDBfile pmap = ssm.setMapping(true, new SequenceI[]
-      { uprot }, new String[]
-      { "A" }, "test/jalview/ext/jmol/1QCF.pdb",
+      PDBfile pmap = ssm.setMapping(true, new SequenceI[] { uprot },
+              new String[] { "A" }, "test/jalview/ext/jmol/1QCF.pdb",
               jalview.io.FormatAdapter.FILE);
       assertTrue(pmap != null);
       SequenceI protseq = pmap.getSeqsAsArray()[0];
@@ -110,8 +106,7 @@ public class Mapping
     }
   }
 
-  @Test(groups =
-  { "Functional" }, enabled = false)
+  @Test(groups = { "Functional" }, enabled = false)
   public void testPDBentryMapping() throws Exception
   {
     Assert.fail("This test intentionally left to fail");
@@ -123,8 +118,7 @@ public class Mapping
     StructureSelectionManager ssm = new jalview.structure.StructureSelectionManager();
     // Associate the 1GAQ pdb file with the subsequence 'imported' from another
     // source
-    PDBfile pde = ssm.setMapping(true, new SequenceI[]
-    { sq }, new String[]
+    PDBfile pde = ssm.setMapping(true, new SequenceI[] { sq }, new String[]
     { "A" }, inFile = "examples/1gaq.txt", jalview.io.FormatAdapter.FILE);
     assertTrue("PDB File couldn't be found", pde != null);
     StructureMapping[] mp = ssm.getMapping(inFile);
@@ -196,8 +190,7 @@ public class Mapping
             Annotation a = transfer.annotations[tanpos], b = alan.annotations[p];
             assertEquals("Non-equivalent annotation element at " + p + "("
                     + rseqpos + ")" + " expected at " + fpos + " (alIndex "
-                    + tanpos + ")",
-                    a == null ? a : a.toString(),
+                    + tanpos + ")", a == null ? a : a.toString(),
                     b == null ? b : b.toString());
             System.out.print("(" + a + "|" + b + ")");
           }
@@ -212,7 +205,7 @@ public class Mapping
    * transform
    * 
    */
-  @Test(groups ={ "Functional" })
+  @Test(groups = { "Functional" })
   public void mapFer1From3W5V() throws Exception
   {
     AlignFrame seqf = new FileLoader(false)
@@ -221,9 +214,8 @@ public class Mapping
                     FormatAdapter.PASTE, "FASTA");
     SequenceI newseq = seqf.getViewport().getAlignment().getSequenceAt(0);
     StructureSelectionManager ssm = new jalview.structure.StructureSelectionManager();
-    PDBfile pmap = ssm.setMapping(true, new SequenceI[]
-    { newseq }, new String[]
-    { null }, "examples/3W5V.pdb",
+    PDBfile pmap = ssm.setMapping(true, new SequenceI[] { newseq },
+            new String[] { null }, "examples/3W5V.pdb",
             jalview.io.FormatAdapter.FILE);
     if (pmap == null)
     {
@@ -235,7 +227,7 @@ public class Mapping
    * compare reference annotation for imported pdb sequence to identical
    * seuqence with transferred annotation from mapped pdb file
    */
-  @Test(groups ={ "Functional" })
+  @Test(groups = { "Functional" })
   public void compareTransferredToRefPDBAnnot() throws Exception
   {
     AlignFrame ref = new FileLoader(false)
@@ -250,9 +242,8 @@ public class Mapping
     StructureSelectionManager ssm = new jalview.structure.StructureSelectionManager();
     ssm.setProcessSecondaryStructure(true);
     ssm.setAddTempFacAnnot(true);
-    PDBfile pmap = ssm.setMapping(true, new SequenceI[]
-    { newseq }, new String[]
-    { null }, "test/jalview/ext/jmol/1QCF.pdb",
+    PDBfile pmap = ssm.setMapping(true, new SequenceI[] { newseq },
+            new String[] { null }, "test/jalview/ext/jmol/1QCF.pdb",
             jalview.io.FormatAdapter.FILE);
     assertTrue(pmap != null);
     assertEquals("Original and copied sequence of different lengths.",