JAL-1645 source formatting and organise imports
[jalview.git] / test / jalview / ws / jabaws / MinJabawsClientTests.java
index 61f8203..fe92b5a 100644 (file)
@@ -18,40 +18,47 @@ import compbio.ws.client.Services;
 public class MinJabawsClientTests
 {
 
-       /**
-        * simple test for the benefit of JAL-1338
-        * @throws Exception
-        */
-       @SuppressWarnings("rawtypes")
-  @Test(groups =
-  { "Network" })
-       public void msaTest() throws Exception {
-               String url;
-               RegistryWS registry = Jws2Client
-                               .connectToRegistry(url = "http://www.compbio.dundee.ac.uk/jabaws");
-               if (registry != null) {
+  /**
+   * simple test for the benefit of JAL-1338
+   * 
+   * @throws Exception
+   */
+  @SuppressWarnings("rawtypes")
+  @Test(groups = { "Network" })
+  public void msaTest() throws Exception
+  {
+    String url;
+    RegistryWS registry = Jws2Client
+            .connectToRegistry(url = "http://www.compbio.dundee.ac.uk/jabaws");
+    if (registry != null)
+    {
 
-                       MsaWS msaservice = null;
-                       for (Services service : registry.getSupportedServices()) {
-                               if (service.equals(Services.ClustalOWS)) {
-                                       msaservice = (MsaWS) Jws2Client.connect(url, service);
-                                       if (msaservice != null) {
-                                               break;
-                                       }
-                               }
-                       }
-                       if (msaservice == null) {
-                               Assert.fail("couldn't find a clustalO service on the public registry");
-                       }
-                       FastaSequence fsq = new FastaSequence("seqA",
-                                       "SESESESESESESESSESESSESESESESESESESESESEEEEEESSESESESESSSSESESESESESESE");
-                       List<FastaSequence> iseqs = new ArrayList<FastaSequence>();
-                       for (int i = 0; i < 9; i++) {
-                               iseqs.add(new FastaSequence(fsq.getId() + i, fsq.getSequence()
-                                               + fsq.getSequence().substring(i + 3, i + 3 + i)));
-                       }
+      MsaWS msaservice = null;
+      for (Services service : registry.getSupportedServices())
+      {
+        if (service.equals(Services.ClustalOWS))
+        {
+          msaservice = (MsaWS) Jws2Client.connect(url, service);
+          if (msaservice != null)
+          {
+            break;
+          }
+        }
+      }
+      if (msaservice == null)
+      {
+        Assert.fail("couldn't find a clustalO service on the public registry");
+      }
+      FastaSequence fsq = new FastaSequence("seqA",
+              "SESESESESESESESSESESSESESESESESESESESESEEEEEESSESESESESSSSESESESESESESE");
+      List<FastaSequence> iseqs = new ArrayList<FastaSequence>();
+      for (int i = 0; i < 9; i++)
+      {
+        iseqs.add(new FastaSequence(fsq.getId() + i, fsq.getSequence()
+                + fsq.getSequence().substring(i + 3, i + 3 + i)));
+      }
 
-                       String jobid = msaservice.align(iseqs);
+      String jobid = msaservice.align(iseqs);
       if (jobid != null)
       {
         JobStatus js = null;
@@ -86,8 +93,8 @@ public class MinJabawsClientTests
         // System.out.println(t.getFormattedFasta());
         // }
         // });
-                       }
+      }
 
-               }
-       }
+    }
+  }
 }