JAL-2353 patch for Ensembl refs from uniprot - needs test and checking !
[jalview.git] / test / jalview / ws / jabaws / MinJabawsClientTests.java
index 998524a..db5f9e4 100644 (file)
@@ -58,14 +58,19 @@ public class MinJabawsClientTests
   public void msaTest() throws Exception
   {
     String url;
-    RegistryWS registry = Jws2Client
-            .connectToRegistry(url = "http://www.compbio.dundee.ac.uk/jabaws");
+    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 == null)
+        {
+          // the 'unsupported service'
+          continue;
+        }
         if (service.equals(Services.ClustalOWS))
         {
           msaservice = (MsaWS) Jws2Client.connect(url, service);
@@ -77,7 +82,8 @@ public class MinJabawsClientTests
       }
       if (msaservice == null)
       {
-        Assert.fail("couldn't find a clustalO service on the public registry");
+        Assert.fail(
+                "couldn't find a clustalO service on the public registry");
       }
       FastaSequence fsq = new FastaSequence("seqA",
               "SESESESESESESESSESESSESESESESESESESESESEEEEEESSESESESESSSSESESESESESESE");