JAL-1645 source formatting and organise imports
[jalview.git] / test / jalview / ws / seqfetcher / DbRefFetcherTest.java
index 1171bfd..ddd8b33 100644 (file)
@@ -70,7 +70,7 @@ public class DbRefFetcherTest
    * and also PDB. (Additional sources are dependent on available of DAS
    * services.)
    */
-  @Test(groups ={ "Functional" })
+  @Test(groups = { "Functional" })
   public void testStandardProtDbs()
   {
     String[] defdb = DBRefSource.PROTEINDBS;
@@ -116,12 +116,12 @@ public class DbRefFetcherTest
    * 
    * @throws Exception
    */
-  @Test(groups =
-  { "External" })
+  @Test(groups = { "External" })
   public void testEmblUniprotProductRecovery() throws Exception
   {
     String retrievalId = "V00488";
-    DbSourceProxy embl = new SequenceFetcher().getSourceProxy(DBRefSource.EMBL).get(0);
+    DbSourceProxy embl = new SequenceFetcher().getSourceProxy(
+            DBRefSource.EMBL).get(0);
     assertNotNull("Couldn't find the EMBL retrieval client", embl);
     verifyProteinNucleotideXref(retrievalId, embl);
   }
@@ -132,8 +132,7 @@ public class DbRefFetcherTest
    * 
    * @throws Exception
    */
-  @Test(groups =
-  { "External" })
+  @Test(groups = { "External" })
   public void testEmblCDSUniprotProductRecovery() throws Exception
   {
     String retrievalId = "AAH29712";
@@ -155,7 +154,8 @@ public class DbRefFetcherTest
   {
     AlignmentI alsq = embl.getSequenceRecords(retrievalId);
     assertNotNull("Couldn't find the EMBL record " + retrievalId, alsq);
-    assertEquals("Didn't retrieve right number of records", 1, alsq.getHeight());
+    assertEquals("Didn't retrieve right number of records", 1,
+            alsq.getHeight());
     SequenceI seq = alsq.getSequenceAt(0);
     assertEquals("Wrong sequence name", embl.getDbSource() + "|"
             + retrievalId, seq.getName());
@@ -166,14 +166,17 @@ public class DbRefFetcherTest
             FeatureProperties.isCodingFeature(embl.getDbSource(),
                     sfs[0].getType()));
     assertEquals(embl.getDbSource(), sfs[0].getFeatureGroup());
-    DBRefEntry[] dr = DBRefUtils.selectRefs(seq.getDBRef(), DBRefSource.PROTEINSEQ);
+    DBRefEntry[] dr = DBRefUtils.selectRefs(seq.getDBRef(),
+            DBRefSource.PROTEINSEQ);
     assertNotNull(dr);
     assertEquals("Expected a single Uniprot cross reference", 1, dr.length);
     assertEquals("Expected cross reference map to be one amino acid", dr[0]
             .getMap().getMappedWidth(), 1);
     assertEquals("Expected local reference map to be 3 nucleotides", dr[0]
             .getMap().getWidth(), 3);
-    AlignmentI sprods = CrossRef.findXrefSequences(alsq.getSequencesArray(), true, dr[0].getSource(), alsq.getDataset());
+    AlignmentI sprods = CrossRef.findXrefSequences(
+            alsq.getSequencesArray(), true, dr[0].getSource(),
+            alsq.getDataset());
     assertNotNull(
             "Couldn't recover cross reference sequence from dataset. Was it ever added ?",
             sprods);